public abstract class LeaderElectionBuilder<T> extends PrimitiveBuilder<LeaderElectionBuilder<T>,LeaderElectionConfig,LeaderElection<T>> implements ProxyCompatibleBuilder<LeaderElectionBuilder<T>>
AsyncLeaderElection instances.| Modifier and Type | Method and Description |
|---|---|
LeaderElectionBuilder<T> |
withProtocol(ProxyProtocol protocol)
Configures the builder with a state machine replication protocol.
|
build, buildAsync, withReadOnly, withReadOnly, withSerializerpublic LeaderElectionBuilder<T> withProtocol(ProxyProtocol protocol)
ProxyCompatibleBuilderwithProtocol in interface ProxyCompatibleBuilder<LeaderElectionBuilder<T>>protocol - the state machine replication protocolCopyright © 2013–2018. All rights reserved.