public class CacheMergeOperationFactory extends PartitionAwareOperationFactory
CacheMergeOperation
.partitions
Constructor and Description |
---|
CacheMergeOperationFactory() |
CacheMergeOperationFactory(String name,
int[] partitions,
List<SplitBrainMergeTypes.CacheMergeTypes>[] mergingEntries,
SplitBrainMergePolicy<Data,SplitBrainMergeTypes.CacheMergeTypes> 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 CacheMergeOperationFactory()
public CacheMergeOperationFactory(String name, int[] partitions, List<SplitBrainMergeTypes.CacheMergeTypes>[] mergingEntries, SplitBrainMergePolicy<Data,SplitBrainMergeTypes.CacheMergeTypes> 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 © 2020 Hazelcast, Inc.. All Rights Reserved.