Initial framework migration to netty.
[bgpcep.git] / framework / src / main / java / org / opendaylight / protocol / framework / ProtocolSessionFactory.java
index 36d46501f4cdd66f0dcc23ed3c24b4186930039f..c5dcbc3f4d418abd1393cf6ca1fc4adf3167800b 100644 (file)
@@ -7,21 +7,24 @@
  */
 package org.opendaylight.protocol.framework;
 
+import io.netty.channel.ChannelHandlerContext;
+
 import java.util.Timer;
 
 /**
- * Factory for generating Protocol Sessions. This class should be extended to
- * return protocol specific session.
+ * Factory for generating Protocol Sessions. This class should be extended to return protocol specific session.
  */
 public interface ProtocolSessionFactory {
 
        /**
         * Creates and returns protocol specific session.
+        * 
         * @param parent SessionParent
         * @param timer Timer
         * @param connection connection attributes
         * @param sessionId session identifier
         * @return new session
         */
-       public ProtocolSession getProtocolSession(SessionParent parent, Timer timer, ProtocolConnection connection, int sessionId);
+       public ProtocolSession getProtocolSession(SessionParent dispatcher, Timer timer, ProtocolConnection connection, int sessionId,
+                       ChannelHandlerContext ctx);
 }