public abstract static class PrimaryBackupSessionClient.Builder
extends io.atomix.primitive.session.SessionClient.Builder
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PrimaryBackupSessionClient.Builder |
withConsistency(io.atomix.primitive.Consistency consistency)
Sets the protocol consistency model.
|
PrimaryBackupSessionClient.Builder |
withMaxRetries(int maxRetries)
Sets the maximum number of retries before an operation can be failed.
|
PrimaryBackupSessionClient.Builder |
withNumBackups(int numBackups)
Sets the number of backups.
|
PrimaryBackupSessionClient.Builder |
withRecovery(io.atomix.primitive.Recovery recovery)
Sets the protocol recovery strategy.
|
PrimaryBackupSessionClient.Builder |
withReplication(io.atomix.primitive.Replication replication)
Sets the protocol replication strategy.
|
PrimaryBackupSessionClient.Builder |
withRetryDelay(Duration retryDelay)
Sets the operation retry delay.
|
PrimaryBackupSessionClient.Builder |
withRetryDelay(long retryDelay,
TimeUnit timeUnit)
Sets the operation retry delay.
|
PrimaryBackupSessionClient.Builder |
withRetryDelayMillis(long retryDelayMillis)
Sets the operation retry delay.
|
public PrimaryBackupSessionClient.Builder withConsistency(io.atomix.primitive.Consistency consistency)
consistency - the protocol consistency modelpublic PrimaryBackupSessionClient.Builder withReplication(io.atomix.primitive.Replication replication)
replication - the protocol replication strategypublic PrimaryBackupSessionClient.Builder withRecovery(io.atomix.primitive.Recovery recovery)
recovery - the protocol recovery strategypublic PrimaryBackupSessionClient.Builder withNumBackups(int numBackups)
numBackups - the number of backupspublic PrimaryBackupSessionClient.Builder withMaxRetries(int maxRetries)
maxRetries - the maximum number of retries before an operation can be failedpublic PrimaryBackupSessionClient.Builder withRetryDelayMillis(long retryDelayMillis)
retryDelayMillis - the delay between operation retries in millisecondspublic PrimaryBackupSessionClient.Builder withRetryDelay(long retryDelay, TimeUnit timeUnit)
retryDelay - the delay between operation retriestimeUnit - the delay time unitNullPointerException - if the time unit is nullpublic PrimaryBackupSessionClient.Builder withRetryDelay(Duration retryDelay)
retryDelay - the delay between operation retriesNullPointerException - if the delay is nullCopyright © 2013–2018. All rights reserved.