public class MultiPrimaryProtocolConfig extends io.atomix.primitive.protocol.PrimitiveProtocolConfig<MultiPrimaryProtocolConfig>
| Constructor and Description |
|---|
MultiPrimaryProtocolConfig() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBackups()
Returns the number of backups.
|
io.atomix.primitive.Consistency |
getConsistency()
Returns the consistency level.
|
String |
getGroup()
Returns the partition group.
|
int |
getMaxRetries()
Returns the maximum allowed number of retries.
|
io.atomix.primitive.partition.Partitioner<String> |
getPartitioner()
Returns the protocol partitioner.
|
io.atomix.primitive.Recovery |
getRecovery()
Returns the recovery strategy.
|
io.atomix.primitive.Replication |
getReplication()
Returns the replication level.
|
Duration |
getRetryDelay()
Returns the retry delay.
|
io.atomix.primitive.protocol.PrimitiveProtocol.Type |
getType() |
MultiPrimaryProtocolConfig |
setBackups(int numBackups)
Sets the number of backups.
|
MultiPrimaryProtocolConfig |
setConsistency(io.atomix.primitive.Consistency consistency)
Sets the consistency level.
|
MultiPrimaryProtocolConfig |
setGroup(String group)
Sets the partition group.
|
MultiPrimaryProtocolConfig |
setMaxRetries(int maxRetries)
Sets the maximum allowed number of retries.
|
MultiPrimaryProtocolConfig |
setPartitioner(io.atomix.primitive.partition.Partitioner<String> partitioner)
Sets the protocol partitioner.
|
MultiPrimaryProtocolConfig |
setRecovery(io.atomix.primitive.Recovery recovery)
Sets the recovery strategy.
|
MultiPrimaryProtocolConfig |
setReplication(io.atomix.primitive.Replication replication)
Sets the replication level.
|
MultiPrimaryProtocolConfig |
setRetryDelay(Duration retryDelay)
Sets the retry delay.
|
MultiPrimaryProtocolConfig |
setRetryDelayMillis(long retryDelayMillis)
Sets the retry delay.
|
public io.atomix.primitive.protocol.PrimitiveProtocol.Type getType()
public String getGroup()
public MultiPrimaryProtocolConfig setGroup(String group)
group - the partition grouppublic io.atomix.primitive.partition.Partitioner<String> getPartitioner()
public MultiPrimaryProtocolConfig setPartitioner(io.atomix.primitive.partition.Partitioner<String> partitioner)
partitioner - the protocol partitionerpublic io.atomix.primitive.Consistency getConsistency()
public MultiPrimaryProtocolConfig setConsistency(io.atomix.primitive.Consistency consistency)
consistency - the consistency levelpublic io.atomix.primitive.Replication getReplication()
public MultiPrimaryProtocolConfig setReplication(io.atomix.primitive.Replication replication)
replication - the replication levelpublic io.atomix.primitive.Recovery getRecovery()
public MultiPrimaryProtocolConfig setRecovery(io.atomix.primitive.Recovery recovery)
recovery - the recovery strategypublic int getBackups()
public MultiPrimaryProtocolConfig setBackups(int numBackups)
numBackups - the number of backupspublic int getMaxRetries()
public MultiPrimaryProtocolConfig setMaxRetries(int maxRetries)
maxRetries - the maximum allowed number of retriespublic Duration getRetryDelay()
public MultiPrimaryProtocolConfig setRetryDelayMillis(long retryDelayMillis)
retryDelayMillis - the retry delay in millisecondspublic MultiPrimaryProtocolConfig setRetryDelay(Duration retryDelay)
retryDelay - the retry delayCopyright © 2013–2018. All rights reserved.