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
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
- 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.