public abstract class PartitionAwareOperationFactory extends Object implements OperationFactory
PartitionIteratingOperation
.Modifier and Type | Field and Description |
---|---|
protected int[] |
partitions
Partition-operations will be created for these partition-ids.
|
Constructor and Description |
---|
PartitionAwareOperationFactory() |
Modifier and Type | Method and Description |
---|---|
PartitionAwareOperationFactory |
createFactoryOnRunner(NodeEngine nodeEngine)
This method will be called on operation runner node.
|
Operation |
createOperation()
Creates the operation.
|
abstract Operation |
createPartitionOperation(int partition)
This method can be called both caller and runner nodes.
|
int[] |
getPartitions()
This method will be called on operation runner node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFactoryId, getId
readData, writeData
protected int[] partitions
public PartitionAwareOperationFactory createFactoryOnRunner(NodeEngine nodeEngine)
PartitionAwareOperationFactory
needs to have runner-side state different from caller-side one,
this method can be used to create it. Otherwise, stateful factories may cause JMM problems.nodeEngine
- nodeEnginepublic abstract Operation createPartitionOperation(int partition)
partition
- id of partitionpublic int[] getPartitions()
public Operation createOperation()
OperationFactory
createOperation
in interface OperationFactory
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.