public class PNCounterConfigReadOnly extends PNCounterConfig
DEFAULT_REPLICA_COUNT, DEFAULT_STATISTICS_ENABLED| Constructor and Description |
|---|
PNCounterConfigReadOnly(PNCounterConfig config) |
| Modifier and Type | Method and Description |
|---|---|
PNCounterConfig |
setName(String name)
Sets the name of the PN counter.
|
PNCounterConfig |
setReplicaCount(int replicaCount)
Sets the number of replicas on which state for this PN counter will
be kept.
|
PNCounterConfig |
setSplitBrainProtectionName(String splitBrainProtectionName)
Sets the split brain protection name for operations.
|
PNCounterConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Enables or disables statistics for this PN counter
|
equals, getClassId, getFactoryId, getName, getReplicaCount, getSplitBrainProtectionName, hashCode, isStatisticsEnabled, readData, writeDatapublic PNCounterConfigReadOnly(PNCounterConfig config)
public PNCounterConfig setName(String name)
PNCounterConfigsetName in interface NamedConfigsetName in class PNCounterConfigname - the name of the PN counterpublic PNCounterConfig setReplicaCount(int replicaCount)
PNCounterConfig
The provided replicaCount must be between 1 and
.
setReplicaCount in class PNCounterConfigreplicaCount - the number of replicas for the CRDT statepublic PNCounterConfig setSplitBrainProtectionName(String splitBrainProtectionName)
PNCounterConfigsetSplitBrainProtectionName in class PNCounterConfigsplitBrainProtectionName - the split brain protection namepublic PNCounterConfig setStatisticsEnabled(boolean statisticsEnabled)
PNCounterConfigsetStatisticsEnabled in class PNCounterConfigstatisticsEnabled - true to enable statistics, false to disableCopyright © 2019 Hazelcast, Inc.. All rights reserved.