public abstract static class PrimaryBackupSessionClient.Builder extends SessionClient.Builder
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PrimaryBackupSessionClient.Builder |
withConsistency(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(Recovery recovery)
Sets the protocol recovery strategy.
|
PrimaryBackupSessionClient.Builder |
withReplication(Replication replication)
Sets the protocol replication strategy.
|
PrimaryBackupSessionClient.Builder |
withRetryDelay(java.time.Duration retryDelay)
Sets the operation retry delay.
|
PrimaryBackupSessionClient.Builder |
withRetryDelay(long retryDelay,
java.util.concurrent.TimeUnit timeUnit)
Sets the operation retry delay.
|
PrimaryBackupSessionClient.Builder |
withRetryDelayMillis(long retryDelayMillis)
Sets the operation retry delay.
|
public PrimaryBackupSessionClient.Builder withConsistency(Consistency consistency)
consistency - the protocol consistency modelpublic PrimaryBackupSessionClient.Builder withReplication(Replication replication)
replication - the protocol replication strategypublic PrimaryBackupSessionClient.Builder withRecovery(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, java.util.concurrent.TimeUnit timeUnit)
retryDelay - the delay between operation retriestimeUnit - the delay time unitjava.lang.NullPointerException - if the time unit is nullpublic PrimaryBackupSessionClient.Builder withRetryDelay(java.time.Duration retryDelay)
retryDelay - the delay between operation retriesjava.lang.NullPointerException - if the delay is nullCopyright © 2013-2019. All Rights Reserved.