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).
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.