* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.mdsal.singleton.dom.impl;
import com.google.common.util.concurrent.ListenableFuture;
+import org.eclipse.jdt.annotation.Nullable;
import org.opendaylight.mdsal.eos.common.api.CandidateAlreadyRegisteredException;
import org.opendaylight.mdsal.eos.common.api.GenericEntity;
import org.opendaylight.mdsal.eos.common.api.GenericEntityOwnershipChange;
* without clustering.
*
* @param service instance
- * @return True if this was the last service registered
+ * @return Future which completes when this instance is shutdown if this was the last registration, null otherwise
*/
- abstract boolean unregisterService(ClusterSingletonServiceRegistration reg);
+ abstract @Nullable ListenableFuture<?> unregisterService(ClusterSingletonServiceRegistration reg);
/**
* Method implementation has to apply ownershipChange for all registered services.