T- key type
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.
DistributedObjectalso 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.
|Modifier and Type||Method and Description|
The key that will be used by Hazelcast to specify the partition.
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.