Add isComplete callback to commitEntry 69/51069/1
authorTomas Slusny <tomas.slusny@pantheon.tech>
Thu, 26 Jan 2017 12:36:36 +0000 (13:36 +0100)
committerTomas Slusny <tomas.slusny@pantheon.tech>
Thu, 26 Jan 2017 12:36:36 +0000 (13:36 +0100)
Implement commitEntry with isComplete callback
from https://git.opendaylight.org/gerrit/#/c/51064/ to
OpenflowPlugin OutboundQueueProviderImpl.

See also: bug 7140

Change-Id: I7c4224e029f175a54b46246e1d409356f2447b16
Signed-off-by: Tomas Slusny <tomas.slusny@pantheon.tech>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/connection/OutboundQueueProviderImpl.java

index 8c03adc94bf8a8335c8fef96c9b51dc0dee3d88a..ac1a084fda7a73af72ecd4839c1dbde3a2a12d15 100644 (file)
@@ -9,6 +9,7 @@
 package org.opendaylight.openflowplugin.impl.connection;
 
 import com.google.common.util.concurrent.FutureCallback;
+import java.util.function.Function;
 import javax.annotation.Nonnull;
 import org.opendaylight.openflowjava.protocol.api.connection.OutboundQueue;
 import org.opendaylight.openflowplugin.api.openflow.connection.OutboundQueueProvider;
@@ -77,4 +78,10 @@ public class OutboundQueueProviderImpl implements OutboundQueueProvider {
     public void commitEntry(final Long xid, final OfHeader message, final FutureCallback<OfHeader> callback) {
         outboundQueue.commitEntry(xid, message, callback);
     }
+
+    @Override
+    public void commitEntry(final Long xid, final OfHeader message, final FutureCallback<OfHeader> callback,
+            final Function<OfHeader, Boolean> isComplete) {
+        outboundQueue.commitEntry(xid, message, callback, isComplete);
+    }
 }