import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.openflowplugin.api.openflow.lifecycle.OwnershipChangeListener;
+import org.opendaylight.yangtools.concepts.Registration;
/**
* Provider to register mastership change listener.
* Provider to set mastership reconciliation framework.
* @since 0.5.0 Nitrogen
*/
-public interface MastershipChangeServiceManager extends OwnershipChangeListener, AutoCloseable {
-
+public interface MastershipChangeServiceManager extends OwnershipChangeListener {
/**
* Register of mastership change listener. Returned registration need to be closed by client.
* It doesn't contain event for reconciliation framework event.
* @see ReconciliationFrameworkEvent
*/
@NonNull
- MastershipChangeRegistration register(@NonNull MastershipChangeService service);
+ Registration register(@NonNull MastershipChangeService service);
/**
* Setter for reconciliation framework event listener. It can be registered only once.
* @return registration object, which can be closed to unregister
* @throws MastershipChangeException if already reconciliation framework registered
*/
- ReconciliationFrameworkRegistration reconciliationFrameworkRegistration(
- @NonNull ReconciliationFrameworkEvent mastershipRFRegistration) throws MastershipChangeException;
-
- @Override
- void close();
+ Registration reconciliationFrameworkRegistration(@NonNull ReconciliationFrameworkEvent mastershipRFRegistration)
+ throws MastershipChangeException;
}