Package com.hazelcast.partition.strategy
Class StringAndPartitionAwarePartitioningStrategy
java.lang.Object
com.hazelcast.partition.strategy.StringAndPartitionAwarePartitioningStrategy
- All Implemented Interfaces:
PartitioningStrategy
,Serializable
public final class StringAndPartitionAwarePartitioningStrategy extends Object implements PartitioningStrategy
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static StringAndPartitionAwarePartitioningStrategy
INSTANCE
-
Method Summary
Modifier and Type Method Description Object
getPartitionKey(Object key)
Returns the key object that will be used by Hazelcast to specify the partition.
-
Field Details
-
Method Details
-
getPartitionKey
Description copied from interface:PartitioningStrategy
Returns the key object that will be used by Hazelcast to specify the partition.- Specified by:
getPartitionKey
in interfacePartitioningStrategy
- 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
-