X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fflowprogrammer%2FIFlowProgrammerService.java;h=d2af1a8c7c5a4a026d8fd43e9168f8d65e83a81c;hb=1bad1b7ca9a87f9e1d32cfcf5a181354fc378ad4;hp=dbd7eafa36b8f71c1a50c71459f799a64fd45b33;hpb=40baffab6be9315bd15c3d59dfd6b8e6685e659a;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/IFlowProgrammerService.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/IFlowProgrammerService.java index dbd7eafa36..d2af1a8c7c 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/IFlowProgrammerService.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/IFlowProgrammerService.java @@ -96,7 +96,8 @@ public interface IFlowProgrammerService { Status removeAllFlows(Node node); /** - * Send synchronous Barrier message + * Send Barrier message synchronously. The caller will be blocked until the + * solicitation response arrives. * * Solicit the network node to report whether all the requests sent so far * are completed. When this call is done, caller knows that all past flow @@ -108,5 +109,20 @@ public interface IFlowProgrammerService { * The network node to solicit * @return The status of this request containing the unique request id */ - Status sendBarrierMessage(Node node); + Status syncSendBarrierMessage(Node node); + + /** + * Send Barrier message asynchronously. The caller is not blocked. + * + * Solicit the network node to report whether all the requests sent so far + * are completed. When this call is done, caller knows that all past flow + * operations requested to the node in asynchronous fashion were satisfied + * by the network node and that in case of any failure, a message was sent + * to the controller. + * + * @param node + * The network node to solicit + * @return The status of this request containing the unique request id + */ + Status asyncSendBarrierMessage(Node node); }