com.hazelcast.partition.strategy
Class StringAndPartitionAwarePartitioningStrategy
java.lang.Object
com.hazelcast.partition.strategy.StringAndPartitionAwarePartitioningStrategy
- All Implemented Interfaces:
- PartitioningStrategy
public final class StringAndPartitionAwarePartitioningStrategy
- extends Object
- implements PartitioningStrategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final StringAndPartitionAwarePartitioningStrategy INSTANCE
getPartitionKey
public Object getPartitionKey(Object key)
- Description copied from interface:
PartitioningStrategy
- Returns the key object that will be used by Hazelcast to specify the partition.
- Specified by:
getPartitionKey
in interface PartitioningStrategy
- Parameters:
key
- actual key object used by Hazelcast to specify the partition
- Returns:
- the partition key object, or null to fallback to the default partition calculation
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.