public class PutAllPartitionAwareOperationFactory extends PartitionAwareOperationFactory
MapEntries
for all partitions of a member via locally invoked PutAllOperation
.
Used to reduce the number of remote invocations of an IMap.putAll(Map)
call.Modifier and Type | Field and Description |
---|---|
protected MapEntries[] |
mapEntries |
protected String |
name |
partitions
Constructor and Description |
---|
PutAllPartitionAwareOperationFactory() |
PutAllPartitionAwareOperationFactory(String name,
int[] partitions,
MapEntries[] mapEntries) |
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, getPartitions
protected String name
protected MapEntries[] mapEntries
public PutAllPartitionAwareOperationFactory()
public PutAllPartitionAwareOperationFactory(String name, int[] partitions, MapEntries[] mapEntries)
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
public void readData(ObjectDataInput in) throws IOException
DataSerializable
in
- inputIOException
public int getFactoryId()
IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.