public class LeaderElectionType<T> extends Object implements PrimitiveType<LeaderElectionBuilder<T>,LeaderElectionConfig,LeaderElection<T>>
| Constructor and Description |
|---|
LeaderElectionType() |
| Modifier and Type | Method and Description |
|---|---|
static <T> LeaderElectionType<T> |
instance()
Returns a new leader elector type.
|
String |
name()
Returns the object name.
|
Namespace |
namespace()
Returns the primitive type namespace.
|
LeaderElectionBuilder<T> |
newBuilder(String name,
LeaderElectionConfig config,
PrimitiveManagementService managementService)
Returns a new primitive builder.
|
LeaderElectionConfig |
newConfig()
Returns a new instance of the primitive configuration.
|
PrimitiveResource |
newResource(LeaderElection<T> primitive)
Creates a new resource for the given primitive.
|
PrimitiveService |
newService(ServiceConfig config)
Creates a new service instance from the given configuration.
|
String |
toString() |
public static <T> LeaderElectionType<T> instance()
T - the election candidate typepublic Namespace namespace()
PrimitiveTypenamespace in interface PrimitiveType<LeaderElectionBuilder<T>,LeaderElectionConfig,LeaderElection<T>>public PrimitiveService newService(ServiceConfig config)
PrimitiveTypenewService in interface PrimitiveType<LeaderElectionBuilder<T>,LeaderElectionConfig,LeaderElection<T>>config - the service configurationpublic PrimitiveResource newResource(LeaderElection<T> primitive)
PrimitiveTypenewResource in interface PrimitiveType<LeaderElectionBuilder<T>,LeaderElectionConfig,LeaderElection<T>>primitive - the primitive instancepublic LeaderElectionConfig newConfig()
PrimitiveTypenewConfig in interface PrimitiveType<LeaderElectionBuilder<T>,LeaderElectionConfig,LeaderElection<T>>newConfig in interface ConfiguredType<LeaderElectionConfig>public LeaderElectionBuilder<T> newBuilder(String name, LeaderElectionConfig config, PrimitiveManagementService managementService)
PrimitiveTypenewBuilder in interface PrimitiveType<LeaderElectionBuilder<T>,LeaderElectionConfig,LeaderElection<T>>name - the primitive nameconfig - the primitive configurationmanagementService - the primitive management serviceCopyright © 2013–2018. All rights reserved.