Change return type of events
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / mastership / ReconciliationFrameworkServiceDelegate.java
index fe05c29840ac9b618fc725cf08f4d75f918637a4..71b047ee411e29a34321ee2ac970ba6ae247d50e 100644 (file)
@@ -7,12 +7,12 @@
  */
 package org.opendaylight.openflowplugin.impl.mastership;
 
-import com.google.common.util.concurrent.FutureCallback;
+import com.google.common.util.concurrent.ListenableFuture;
+import javax.annotation.Nonnull;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo;
-import org.opendaylight.openflowplugin.api.openflow.mastership.*;
+import org.opendaylight.openflowplugin.api.openflow.mastership.ReconciliationFrameworkEvent;
+import org.opendaylight.openflowplugin.api.openflow.mastership.ReconciliationFrameworkRegistration;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.rf.state.rev170713.ResultState;
-
-import javax.annotation.Nonnull;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -38,13 +38,13 @@ public class ReconciliationFrameworkServiceDelegate implements ReconciliationFra
     }
 
     @Override
-    public void onDevicePrepared(@Nonnull DeviceInfo deviceInfo, @Nonnull FutureCallback<ResultState> callback) {
-        this.service.onDevicePrepared(deviceInfo, callback);
+    public ListenableFuture<ResultState> onDevicePrepared(@Nonnull DeviceInfo deviceInfo) {
+        return this.service.onDevicePrepared(deviceInfo);
     }
 
     @Override
-    public void onDeviceDisconnected(@Nonnull DeviceInfo deviceInfo) {
-        this.service.onDeviceDisconnected(deviceInfo);
+    public ListenableFuture<Void> onDeviceDisconnected(@Nonnull DeviceInfo deviceInfo) {
+        return this.service.onDeviceDisconnected(deviceInfo);
     }
 
     @Override