public class MergePolicyConfigReadOnly extends MergePolicyConfig
DEFAULT_BATCH_SIZE, DEFAULT_MERGE_POLICY
Constructor and Description |
---|
MergePolicyConfigReadOnly(MergePolicyConfig mergePolicyConfig) |
Modifier and Type | Method and Description |
---|---|
MergePolicyConfig |
setBatchSize(int batchSize)
Sets the batch size, which will be used to determine
the number of entries to be sent in a merge operation.
|
MergePolicyConfig |
setPolicy(String policy)
Sets the classname of your
SplitBrainMergePolicy . |
equals, getBatchSize, getClassId, getFactoryId, getPolicy, hashCode, readData, toString, writeData
public MergePolicyConfigReadOnly(MergePolicyConfig mergePolicyConfig)
public MergePolicyConfig setPolicy(String policy)
MergePolicyConfig
SplitBrainMergePolicy
.
For the out-of-the-box merge policies the simple classname
is sufficient, e.g. PutIfAbsentMergePolicy
.
But also the fully qualified classname is fine, e.g.
com.hazelcast.spi.merge.PutIfAbsentMergePolicy. For a
custom merge policy the fully qualified classname is needed.
Must be a non-empty string. The default
value is PutIfAbsentMergePolicy
.
setPolicy
in class MergePolicyConfig
policy
- the classname of the merge policyMergePolicyConfig
instancepublic MergePolicyConfig setBatchSize(int batchSize)
MergePolicyConfig
Must be a positive number. Set to 1
to disable
batching. The default value is 100.
setBatchSize
in class MergePolicyConfig
batchSize
- the batch sizeMergePolicyConfig
instanceCopyright © 2019 Hazelcast, Inc.. All rights reserved.