BUG-58: refactor to take advantage of netty
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / spi / BGPDispatcher.java
index e2df70da1b5351b451a6c287d571efed66cbb479..e00b0962d43b4414ee6b28c1599b21a972202a1d 100644 (file)
@@ -10,9 +10,10 @@ package org.opendaylight.protocol.bgp.rib.impl.spi;
 import io.netty.util.concurrent.Future;
 
 import java.io.IOException;
+import java.net.InetSocketAddress;
 
 import org.opendaylight.protocol.bgp.parser.BGPSession;
-import org.opendaylight.protocol.framework.ProtocolMessageFactory;
+import org.opendaylight.protocol.bgp.parser.BGPSessionListener;
 import org.opendaylight.protocol.framework.ReconnectStrategy;
 
 /**
@@ -28,5 +29,5 @@ public interface BGPDispatcher {
         * @return client session
         * @throws IOException
         */
-       Future<? extends BGPSession> createClient(BGPConnection connection, ProtocolMessageFactory parser, final ReconnectStrategy strategy);
+       Future<? extends BGPSession> createClient(InetSocketAddress address, BGPSessionPreferences preferences, BGPSessionListener listener, final ReconnectStrategy strategy);
 }