public class MultiPrimaryProtocolBuilder extends PrimitiveProtocolBuilder<MultiPrimaryProtocolBuilder,MultiPrimaryProtocolConfig,MultiPrimaryProtocol>
| Modifier and Type | Method and Description |
|---|---|
MultiPrimaryProtocol |
build() |
MultiPrimaryProtocolBuilder |
withBackups(int numBackups)
Sets the number of backups.
|
MultiPrimaryProtocolBuilder |
withConsistency(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(Partitioner<java.lang.String> partitioner)
Sets the protocol partitioner.
|
MultiPrimaryProtocolBuilder |
withRecovery(Recovery recovery)
Sets the protocol recovery strategy.
|
MultiPrimaryProtocolBuilder |
withReplication(Replication replication)
Sets the protocol replication strategy.
|
MultiPrimaryProtocolBuilder |
withRetryDelay(java.time.Duration retryDelay)
Sets the operation retry delay.
|
MultiPrimaryProtocolBuilder |
withRetryDelay(long retryDelay,
java.util.concurrent.TimeUnit timeUnit)
Sets the operation retry delay.
|
MultiPrimaryProtocolBuilder |
withRetryDelayMillis(long retryDelayMillis)
Sets the operation retry delay.
|
public MultiPrimaryProtocolBuilder withPartitioner(Partitioner<java.lang.String> partitioner)
partitioner - the protocol partitionerpublic MultiPrimaryProtocolBuilder withConsistency(Consistency consistency)
consistency - the protocol consistency modelpublic MultiPrimaryProtocolBuilder withReplication(Replication replication)
replication - the protocol replication strategypublic MultiPrimaryProtocolBuilder withRecovery(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, java.util.concurrent.TimeUnit timeUnit)
retryDelay - the delay between operation retriestimeUnit - the delay time unitjava.lang.NullPointerException - if the time unit is nullpublic MultiPrimaryProtocolBuilder withRetryDelay(java.time.Duration retryDelay)
retryDelay - the delay between operation retriesjava.lang.NullPointerException - if the delay is nullpublic MultiPrimaryProtocol build()
Copyright © 2013-2019. All Rights Reserved.