public class MergeOperationFactory extends PartitionAwareOperationFactory
MergeOperation
.partitions
Constructor and Description |
---|
MergeOperationFactory() |
MergeOperationFactory(String name,
int[] partitions,
List<SplitBrainMergeTypes.ReplicatedMapMergeTypes>[] mergingEntries,
SplitBrainMergePolicy<Object,SplitBrainMergeTypes.ReplicatedMapMergeTypes> mergePolicy) |
Modifier and Type | Method and Description |
---|---|
Operation |
createPartitionOperation(int partitionId)
This method can be called both caller and runner nodes.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
createFactoryOnRunner, createOperation
public MergeOperationFactory()
public MergeOperationFactory(String name, int[] partitions, List<SplitBrainMergeTypes.ReplicatedMapMergeTypes>[] mergingEntries, SplitBrainMergePolicy<Object,SplitBrainMergeTypes.ReplicatedMapMergeTypes> mergePolicy)
public Operation createPartitionOperation(int partitionId)
PartitionAwareOperationFactory
Creates a partition-operation for supplied partition ID.
createPartitionOperation
in class PartitionAwareOperationFactory
partitionId
- ID of partitionpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.