Merge "Revert "Checkstyle enforcer""
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / core / ISwitch.java
index ee46ce2302a24fd9ce3b7160cafe965a3c4a07e8..196fbbfb4c454e0ff6f748cf2a11dc50d7186c16 100644 (file)
@@ -217,7 +217,15 @@ public interface ISwitch {
     public boolean isOperational();
 
     /**
-     * Sends synchronous Barrier message 
+     * Send Barrier message synchronously. The caller will be blocked until the
+     * Barrier reply arrives.
      */
-    public Object sendBarrierMessage();
+    Object syncSendBarrierMessage();
+
+    /**
+     * Send Barrier message asynchronously. The caller is not blocked. The
+     * Barrier message will be sent in a transmit thread which will be blocked
+     * until the Barrier reply arrives.
+     */
+    Object asyncSendBarrierMessage();
 }