T- key type
@FunctionalInterface public interface PartitionAware<T>
getPartitionKey()'s owner member.
This achieves data affinity. Data and execution occurs on the same partition.
In Hazelcast, disparate data structures will be stored on the same partition, based on the partition key. For example, if "Steve" was used, then the following would be on one partition.
IExecutorServicewhich needs to deal with a customer and a customer's orders, you can achieve optimal performance by putting them on the same partition.
DistributedObject also has a notion of the partition key which is of type String
to ensure that the same partition as distributed Objects Strings is used for the partition key.
Copyright © 2022 Hazelcast, Inc.. All rights reserved.