T
- key typepublic 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.
IExecutorService
which 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.
DistributedObject
Modifier and Type | Method and Description |
---|---|
T |
getPartitionKey()
The key that will be used by Hazelcast to specify the partition.
|
T getPartitionKey()
Copyright © 2018 Hazelcast, Inc.. All rights reserved.