public class MultiRaftProtocolBuilder extends io.atomix.primitive.protocol.PrimitiveProtocolBuilder<MultiRaftProtocolBuilder,MultiRaftProtocolConfig,MultiRaftProtocol>
| Modifier and Type | Method and Description |
|---|---|
MultiRaftProtocol |
build() |
MultiRaftProtocolBuilder |
withCommunicationStrategy(CommunicationStrategy communicationStrategy)
Sets the communication strategy.
|
MultiRaftProtocolBuilder |
withMaxRetries(int maxRetries)
Sets the maximum number of retries before an operation can be failed.
|
MultiRaftProtocolBuilder |
withMaxTimeout(Duration maxTimeout)
Sets the maximum session timeout.
|
MultiRaftProtocolBuilder |
withMinTimeout(Duration minTimeout)
Sets the minimum session timeout.
|
MultiRaftProtocolBuilder |
withPartitioner(io.atomix.primitive.partition.Partitioner<String> partitioner)
Sets the protocol partitioner.
|
MultiRaftProtocolBuilder |
withReadConsistency(ReadConsistency readConsistency)
Sets the read consistency level.
|
MultiRaftProtocolBuilder |
withRecoveryStrategy(io.atomix.primitive.Recovery recoveryStrategy)
Sets the recovery strategy.
|
MultiRaftProtocolBuilder |
withRetryDelay(Duration retryDelay)
Sets the operation retry delay.
|
MultiRaftProtocolBuilder |
withRetryDelay(long retryDelay,
TimeUnit timeUnit)
Sets the operation retry delay.
|
MultiRaftProtocolBuilder |
withRetryDelayMillis(long retryDelayMillis)
Sets the operation retry delay.
|
public MultiRaftProtocolBuilder withPartitioner(io.atomix.primitive.partition.Partitioner<String> partitioner)
partitioner - the protocol partitionerpublic MultiRaftProtocolBuilder withMinTimeout(Duration minTimeout)
minTimeout - the minimum session timeoutpublic MultiRaftProtocolBuilder withMaxTimeout(Duration maxTimeout)
maxTimeout - the maximum session timeoutpublic MultiRaftProtocolBuilder withReadConsistency(ReadConsistency readConsistency)
readConsistency - the read consistency levelpublic MultiRaftProtocolBuilder withCommunicationStrategy(CommunicationStrategy communicationStrategy)
communicationStrategy - the communication strategypublic MultiRaftProtocolBuilder withRecoveryStrategy(io.atomix.primitive.Recovery recoveryStrategy)
recoveryStrategy - the recovery strategypublic MultiRaftProtocolBuilder withMaxRetries(int maxRetries)
maxRetries - the maximum number of retries before an operation can be failedpublic MultiRaftProtocolBuilder withRetryDelayMillis(long retryDelayMillis)
retryDelayMillis - the delay between operation retries in millisecondspublic MultiRaftProtocolBuilder withRetryDelay(long retryDelay, TimeUnit timeUnit)
retryDelay - the delay between operation retriestimeUnit - the delay time unitNullPointerException - if the time unit is nullpublic MultiRaftProtocolBuilder withRetryDelay(Duration retryDelay)
retryDelay - the delay between operation retriesNullPointerException - if the delay is nullpublic MultiRaftProtocol build()
Copyright © 2013–2018. All rights reserved.