public interface PartitionAwareOperation
Operation.getPartitionId()
method, the system will use that to determine if an Operation is partition-aware. So the system is fine if you create
an Operation that doesn't implements PartitionAwareOperation, but returns a partitionId equal or larger than 0 (and therefor is
partition-specific). But it is also fine if you do implement this PartitionAwareOperation interface, and return -1 as
partition-id (and therefor is not specific to a partition).Modifier and Type | Method and Description |
---|---|
int |
getPartitionId()
Gets the partition id.
|
int getPartitionId()
Operation.getPartitionId()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.