public class MultiPrimaryProtocolBuilder extends io.atomix.primitive.protocol.PrimitiveProtocolBuilder<MultiPrimaryProtocolBuilder,MultiPrimaryProtocolConfig,MultiPrimaryProtocol>
| Modifier and Type | Method and Description |
|---|---|
MultiPrimaryProtocol |
build() |
MultiPrimaryProtocolBuilder |
withBackups(int numBackups)
Sets the number of backups.
|
MultiPrimaryProtocolBuilder |
withConsistency(io.atomix.primitive.Consistency consistency)
Sets the protocol consistency model.
|
MultiPrimaryProtocolBuilder |
withMaxRetries(int maxRetries)
Sets the maximum number of retries before an operation can be failed.
|
MultiPrimaryProtocolBuilder |
withPartitioner(io.atomix.primitive.partition.Partitioner<String> partitioner)
Sets the protocol partitioner.
|
MultiPrimaryProtocolBuilder |
withRecovery(io.atomix.primitive.Recovery recovery)
Sets the protocol recovery strategy.
|
MultiPrimaryProtocolBuilder |
withReplication(io.atomix.primitive.Replication replication)
Sets the protocol replication strategy.
|
MultiPrimaryProtocolBuilder |
withRetryDelay(Duration retryDelay)
Sets the operation retry delay.
|
MultiPrimaryProtocolBuilder |
withRetryDelay(long retryDelay,
TimeUnit timeUnit)
Sets the operation retry delay.
|
MultiPrimaryProtocolBuilder |
withRetryDelayMillis(long retryDelayMillis)
Sets the operation retry delay.
|
public MultiPrimaryProtocolBuilder withPartitioner(io.atomix.primitive.partition.Partitioner<String> partitioner)
partitioner - the protocol partitionerpublic MultiPrimaryProtocolBuilder withConsistency(io.atomix.primitive.Consistency consistency)
consistency - the protocol consistency modelpublic MultiPrimaryProtocolBuilder withReplication(io.atomix.primitive.Replication replication)
replication - the protocol replication strategypublic MultiPrimaryProtocolBuilder withRecovery(io.atomix.primitive.Recovery recovery)
recovery - the protocol recovery strategypublic MultiPrimaryProtocolBuilder withBackups(int numBackups)
numBackups - the number of backupspublic MultiPrimaryProtocolBuilder withMaxRetries(int maxRetries)
maxRetries - the maximum number of retries before an operation can be failedpublic MultiPrimaryProtocolBuilder withRetryDelayMillis(long retryDelayMillis)
retryDelayMillis - the delay between operation retries in millisecondspublic MultiPrimaryProtocolBuilder withRetryDelay(long retryDelay, TimeUnit timeUnit)
retryDelay - the delay between operation retriestimeUnit - the delay time unitNullPointerException - if the time unit is nullpublic MultiPrimaryProtocolBuilder withRetryDelay(Duration retryDelay)
retryDelay - the delay between operation retriesNullPointerException - if the delay is nullpublic MultiPrimaryProtocol build()
Copyright © 2013–2018. All rights reserved.