public abstract static class RaftSessionClient.Builder extends SessionClient.Builder
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RaftSessionClient.Builder |
withCommunicationStrategy(CommunicationStrategy communicationStrategy)
Sets the communication strategy.
|
RaftSessionClient.Builder |
withMaxRetries(int maxRetries)
Sets the maximum number of retries before an operation can be failed.
|
RaftSessionClient.Builder |
withMaxTimeout(Duration maxTimeout)
Sets the maximum session timeout.
|
RaftSessionClient.Builder |
withMinTimeout(Duration minTimeout)
Sets the minimum session timeout.
|
RaftSessionClient.Builder |
withReadConsistency(ReadConsistency readConsistency)
Sets the read consistency level.
|
RaftSessionClient.Builder |
withRecoveryStrategy(Recovery recoveryStrategy)
Sets the recovery strategy.
|
RaftSessionClient.Builder |
withRetryDelay(Duration retryDelay)
Sets the operation retry delay.
|
RaftSessionClient.Builder |
withRetryDelay(long retryDelay,
TimeUnit timeUnit)
Sets the operation retry delay.
|
RaftSessionClient.Builder |
withRetryDelayMillis(long retryDelayMillis)
Sets the operation retry delay.
|
public RaftSessionClient.Builder withMinTimeout(Duration minTimeout)
minTimeout - the minimum session timeoutpublic RaftSessionClient.Builder withMaxTimeout(Duration maxTimeout)
maxTimeout - the maximum session timeoutpublic RaftSessionClient.Builder withReadConsistency(ReadConsistency readConsistency)
readConsistency - the read consistency levelpublic RaftSessionClient.Builder withCommunicationStrategy(CommunicationStrategy communicationStrategy)
communicationStrategy - the communication strategypublic RaftSessionClient.Builder withRecoveryStrategy(Recovery recoveryStrategy)
recoveryStrategy - the recovery strategypublic RaftSessionClient.Builder withMaxRetries(int maxRetries)
maxRetries - the maximum number of retries before an operation can be failedpublic RaftSessionClient.Builder withRetryDelayMillis(long retryDelayMillis)
retryDelayMillis - the delay between operation retries in millisecondspublic RaftSessionClient.Builder withRetryDelay(long retryDelay, TimeUnit timeUnit)
retryDelay - the delay between operation retriestimeUnit - the delay time unitNullPointerException - if the time unit is nullpublic RaftSessionClient.Builder withRetryDelay(Duration retryDelay)
retryDelay - the delay between operation retriesNullPointerException - if the delay is nullCopyright © 2013–2018. All rights reserved.