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