*/
package org.opendaylight.protocol.bgp.rib.impl.spi;
+import io.netty.util.concurrent.Future;
+
import java.io.IOException;
-import org.opendaylight.protocol.bgp.parser.BGPMessageParser;
import org.opendaylight.protocol.bgp.parser.BGPSession;
-
+import org.opendaylight.protocol.framework.ProtocolMessageFactory;
/**
* Dispatcher class for creating BGP clients.
* @return client session
* @throws IOException
*/
- BGPSession createClient(BGPConnection connection, BGPMessageParser parser) throws IOException;
+ Future<? extends BGPSession> createClient(BGPConnection connection, ProtocolMessageFactory parser) throws IOException;
}