public class DefaultPartitioningStrategy extends Object implements PartitioningStrategy
PartitioningStrategy
that checks if the key implements PartitionAware
.
If so, the PartitionAware.getPartitionKey()
is called. Otherwise null is returned.Constructor and Description |
---|
DefaultPartitioningStrategy() |
Modifier and Type | Method and Description |
---|---|
Object |
getPartitionKey(Object key)
Returns the key object that will be used by Hazelcast to specify the partition.
|
public Object getPartitionKey(Object key)
PartitioningStrategy
getPartitionKey
in interface PartitioningStrategy
key
- actual key object used by Hazelcast to specify the partitionCopyright © 2022 Hazelcast, Inc.. All rights reserved.