public class LeaderElectorType<T> extends Object implements PrimitiveType<LeaderElectorBuilder<T>,LeaderElectorConfig,LeaderElector<T>>
| Constructor and Description |
|---|
LeaderElectorType() |
| Modifier and Type | Method and Description |
|---|---|
static <T> LeaderElectorType<T> |
instance()
Returns a new leader elector type.
|
String |
name()
Returns the object name.
|
Namespace |
namespace()
Returns the primitive type namespace.
|
LeaderElectorBuilder<T> |
newBuilder(String name,
LeaderElectorConfig config,
PrimitiveManagementService managementService)
Returns a new primitive builder.
|
LeaderElectorConfig |
newConfig()
Returns a new instance of the primitive configuration.
|
PrimitiveService |
newService(ServiceConfig config)
Creates a new service instance from the given configuration.
|
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitnewResourcepublic static <T> LeaderElectorType<T> instance()
T - the election candidate typepublic Namespace namespace()
PrimitiveTypenamespace in interface PrimitiveType<LeaderElectorBuilder<T>,LeaderElectorConfig,LeaderElector<T>>public PrimitiveService newService(ServiceConfig config)
PrimitiveTypenewService in interface PrimitiveType<LeaderElectorBuilder<T>,LeaderElectorConfig,LeaderElector<T>>config - the service configurationpublic LeaderElectorConfig newConfig()
PrimitiveTypenewConfig in interface PrimitiveType<LeaderElectorBuilder<T>,LeaderElectorConfig,LeaderElector<T>>newConfig in interface ConfiguredType<LeaderElectorConfig>public LeaderElectorBuilder<T> newBuilder(String name, LeaderElectorConfig config, PrimitiveManagementService managementService)
PrimitiveTypenewBuilder in interface PrimitiveType<LeaderElectorBuilder<T>,LeaderElectorConfig,LeaderElector<T>>name - the primitive nameconfig - the primitive configurationmanagementService - the primitive management serviceCopyright © 2013–2018. All rights reserved.