public final class ClusterSingletonServiceRegistrationHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceRegistration |
registerSingletonService(org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider singletonProvider,
org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService clusterSingletonService)
This helper function wraps
ClusterSingletonServiceProvider.registerClusterSingletonService(ClusterSingletonService) in order to
execute repeated registration attempts while catching RuntimeException. |
static org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceRegistration |
registerSingletonService(org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider singletonProvider,
org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService clusterSingletonService,
int maxAttempts,
int sleepTime)
This helper function wraps
ClusterSingletonServiceProvider.registerClusterSingletonService(ClusterSingletonService) in order to
execute repeated registration attempts while catching RuntimeException. |
public static org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceRegistration registerSingletonService(org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider singletonProvider,
org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService clusterSingletonService,
int maxAttempts,
int sleepTime)
ClusterSingletonServiceProvider.registerClusterSingletonService(ClusterSingletonService) in order to
execute repeated registration attempts while catching RuntimeException. If registration is not successful,
RuntimeException is re-thrown.singletonProvider - Cluster Singleton Service ProviderclusterSingletonService - Cluster Singleton ServicemaxAttempts - Upper bound for registration retries count.sleepTime - Sleep time between registration retries in milliseconds.public static org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceRegistration registerSingletonService(org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider singletonProvider,
org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService clusterSingletonService)
ClusterSingletonServiceProvider.registerClusterSingletonService(ClusterSingletonService) in order to
execute repeated registration attempts while catching RuntimeException. If registration is not successful,
RuntimeException is re-thrown. 10 registration attempts will be tried with 10 ms pause between each
other.singletonProvider - Cluster Singleton Service ProviderclusterSingletonService - Cluster Singleton ServiceCopyright © 2019 OpenDaylight. All rights reserved.