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)
PartitioningStrategygetPartitionKey in interface PartitioningStrategykey - actual key object used by Hazelcast to specify the partitionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.