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 implement PartitionAwareOperation, but returns a partitionId equal or larger than 0 (and therefore is
partition-specific). But it is also fine if you do implement the PartitionAwareOperation interface and return -1 as
partition ID (the operation therefore is not specific to a partition).Modifier and Type | Method and Description |
---|---|
int |
getPartitionId()
Gets the partition ID.
|
int getPartitionId()
Operation.getPartitionId()
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.