moved BGP Table type from concepts to parser-api.
[bgpcep.git] / bgp / parser-api / src / main / java / org / opendaylight / protocol / bgp / parser / BGPSession.java
index 53bd9e3ed11aaf119ca66422914c68bd0e603532..dd3269df05a7d21ed059e9759b9129a8d0b3cee8 100644 (file)
@@ -7,7 +7,10 @@
  */
 package org.opendaylight.protocol.bgp.parser;
 
-import java.io.Closeable;
+import java.util.Set;
+
+import org.opendaylight.protocol.framework.ProtocolSession;
+import org.opendaylight.yangtools.yang.binding.Notification;
 
 /**
  * BGP Session represents the finite state machine in BGP, including timers and its purpose is to create a BGP
@@ -16,7 +19,7 @@ import java.io.Closeable;
  * 
  * If the session is up, it has to redirect messages to/from user. Handles also malformed messages and unknown requests.
  */
-public interface BGPSession extends Closeable {
-       @Override
-       public void close();
+public interface BGPSession extends ProtocolSession<Notification> {
+
+       public Set<BGPTableType> getAdvertisedTableTypes();
 }