BGPCEP-737: Implement BMP client reconnection
[bgpcep.git] / bgp / bmp-spi / src / main / java / org / opendaylight / protocol / bmp / api / BmpSessionFactory.java
index fe5950f07f10164b011a3da39bd05961851c74ea..7345e5f03fac39b54383c74f8fb0c72701c41b72 100644 (file)
@@ -9,9 +9,17 @@
 package org.opendaylight.protocol.bmp.api;
 
 import io.netty.channel.Channel;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
 
 public interface BmpSessionFactory {
-
-    BmpSession getSession(Channel channel, BmpSessionListenerFactory sessionListenerFactory);
-
+    /**
+     * Creates Bmp Session.
+     *
+     * @param channel                generated channel
+     * @param sessionListenerFactory listener factory
+     * @return bmp session
+     */
+    @Nonnull BmpSession getSession(@Nonnull Channel channel,
+            @Nullable BmpSessionListenerFactory sessionListenerFactory);
 }