* 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.common.api;
/**
* a service group candidate must hold ownership of both these entities.
*/
public interface ClusterSingletonServiceProvider extends AutoCloseable {
-
/**
* Method registers {@link ClusterSingletonService} to Provider.
* Method returns {@link java.lang.RuntimeException} for unexpected state, so be careful with implementation.
* @return {@link AutoCloseable} registration
*/
ClusterSingletonServiceRegistration registerClusterSingletonService(ClusterSingletonService service);
-
}