public static class MultiPrimaryProtocol.Builder
extends io.atomix.primitive.PrimitiveProtocol.Builder
| Modifier and Type | Method and Description |
|---|---|
MultiPrimaryProtocol |
build() |
MultiPrimaryProtocol.Builder |
withBackups(int numBackups)
Sets the number of backups.
|
MultiPrimaryProtocol.Builder |
withConsistency(io.atomix.primitive.Consistency consistency)
Sets the protocol consistency model.
|
MultiPrimaryProtocol.Builder |
withExecutor(Executor executor)
Sets the executor with which to complete proxy futures.
|
MultiPrimaryProtocol.Builder |
withMaxRetries(int maxRetries)
Sets the maximum number of retries before an operation can be failed.
|
MultiPrimaryProtocol.Builder |
withRecovery(io.atomix.primitive.Recovery recovery)
Sets the protocol recovery strategy.
|
MultiPrimaryProtocol.Builder |
withReplication(io.atomix.primitive.Replication replication)
Sets the protocol replication strategy.
|
MultiPrimaryProtocol.Builder |
withRetryDelay(Duration retryDelay)
Sets the operation retry delay.
|
MultiPrimaryProtocol.Builder |
withRetryDelay(long retryDelay,
TimeUnit timeUnit)
Sets the operation retry delay.
|
MultiPrimaryProtocol.Builder |
withRetryDelayMillis(long retryDelayMillis)
Sets the operation retry delay.
|
public MultiPrimaryProtocol.Builder withConsistency(io.atomix.primitive.Consistency consistency)
consistency - the protocol consistency modelpublic MultiPrimaryProtocol.Builder withReplication(io.atomix.primitive.Replication replication)
replication - the protocol replication strategypublic MultiPrimaryProtocol.Builder withRecovery(io.atomix.primitive.Recovery recovery)
recovery - the protocol recovery strategypublic MultiPrimaryProtocol.Builder withBackups(int numBackups)
numBackups - the number of backupspublic MultiPrimaryProtocol.Builder withMaxRetries(int maxRetries)
maxRetries - the maximum number of retries before an operation can be failedpublic MultiPrimaryProtocol.Builder withRetryDelayMillis(long retryDelayMillis)
retryDelayMillis - the delay between operation retries in millisecondspublic MultiPrimaryProtocol.Builder withRetryDelay(long retryDelay, TimeUnit timeUnit)
retryDelay - the delay between operation retriestimeUnit - the delay time unitNullPointerException - if the time unit is nullpublic MultiPrimaryProtocol.Builder withRetryDelay(Duration retryDelay)
retryDelay - the delay between operation retriesNullPointerException - if the delay is nullpublic MultiPrimaryProtocol.Builder withExecutor(Executor executor)
executor - The executor with which to complete proxy futures.NullPointerException - if the executor is nullpublic MultiPrimaryProtocol build()
Copyright © 2013–2018. All rights reserved.