BUG-58: refactor to take advantage of netty
[bgpcep.git] / bgp / parser-api / src / main / java / org / opendaylight / protocol / bgp / parser / BGPSession.java
index 53bd9e3ed11aaf119ca66422914c68bd0e603532..af173644ced2bb595ad9b7103e06d30afb843910 100644 (file)
@@ -7,7 +7,10 @@
  */
 package org.opendaylight.protocol.bgp.parser;
 
-import java.io.Closeable;
+import java.util.Set;
+
+import org.opendaylight.protocol.bgp.concepts.BGPTableType;
+import org.opendaylight.protocol.framework.ProtocolSession;
 
 /**
  * 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<BGPMessage> {
+
+       public Set<BGPTableType> getAdvertisedTableTypes();
 }