Add method to register listener for unknown msg
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / ConnectionAdapter.java
index 89cd461f05add5f9aaf5c56c0072e2b974d497b3..a61ea51336fcb42df898f667df98211a9b65f47d 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.openflowjava.protocol.api.connection;
 import com.google.common.annotations.Beta;
 import java.net.InetSocketAddress;
 import java.util.concurrent.Future;
+import org.opendaylight.openflowjava.protocol.api.extensibility.AlienMessageListener;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolListener;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.system.rev130927.SystemNotificationsListener;
@@ -35,6 +36,7 @@ public interface ConnectionAdapter extends OpenflowProtocolService {
      * @return address of the remote end - address of a switch if connected
      */
     InetSocketAddress getRemoteAddress();
+
     /**
      * @param messageListener here will be pushed all messages from switch
      */
@@ -45,6 +47,12 @@ public interface ConnectionAdapter extends OpenflowProtocolService {
      */
     void setSystemListener(SystemNotificationsListener systemListener);
 
+    /**
+     * Set handler for alien messages received from device
+     * @param alienMessageListener here will be pushed all alien messages from switch
+     */
+    void setAlienMessageListener(AlienMessageListener alienMessageListener);
+
     /**
      * Throws exception if any of required listeners is missing
      */