- Add stop() method in IMessageReadWrite for proper clean up when connection is closed.
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / core / IMessageReadWrite.java
index 301159d6d3fbf8520ff6bf912210a0fab29fd600..8fb9a6acb8a2c498533ce15db5161af7a28d6562 100644 (file)
@@ -42,4 +42,12 @@ public interface IMessageReadWrite {
         * @throws Exception
         */
     public List<OFMessage> readMessages() throws Exception;
+    
+       /**
+        * Proper clean up when the switch connection is closed
+        * 
+        * @return
+        * @throws Exception
+        */
+    public void stop() throws Exception;
 }