C
- container of the data structureV
- the type of the merged valueT
- the type of the merging value, e.g. MergingValue
or MergingEntry & MergingHits
public abstract class AbstractContainerMerger<C,V,T extends MergingValue<V>> extends Object implements Runnable
AbstractContainerCollector
.Modifier and Type | Field and Description |
---|---|
protected AbstractContainerCollector<C> |
collector |
Modifier | Constructor and Description |
---|---|
protected |
AbstractContainerMerger(AbstractContainerCollector<C> collector,
NodeEngine nodeEngine) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getLabel()
Returns a label of the service for customized error messages.
|
protected SplitBrainMergePolicy<V,T> |
getMergePolicy(MergePolicyConfig mergePolicyConfig)
Returns the
SplitBrainMergePolicy instance of a given MergePolicyConfig . |
protected void |
invoke(String serviceName,
Operation operation,
int partitionId)
Invokes the given merge operation.
|
void |
run() |
protected abstract void |
runInternal()
Executes the service specific merging logic.
|
protected final AbstractContainerCollector<C> collector
protected AbstractContainerMerger(AbstractContainerCollector<C> collector, NodeEngine nodeEngine)
protected abstract String getLabel()
protected abstract void runInternal()
protected SplitBrainMergePolicy<V,T> getMergePolicy(MergePolicyConfig mergePolicyConfig)
SplitBrainMergePolicy
instance of a given MergePolicyConfig
.mergePolicyConfig
- the MergePolicyConfig
to retrieve the merge policy fromSplitBrainMergePolicy
instanceCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.