Package com.hazelcast.partition.strategy
Class AttributePartitioningStrategy
java.lang.Object
com.hazelcast.partition.strategy.AttributePartitioningStrategy
- All Implemented Interfaces:
PartitioningStrategy<Object>
,Serializable
public final class AttributePartitioningStrategy
extends Object
implements PartitioningStrategy<Object>
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
getPartitionKey
(Object key) Returns the key object that will be used by Hazelcast to specify the partition.
-
Constructor Details
-
AttributePartitioningStrategy
-
-
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<Object>
- Parameters:
key
- actual key object used by Hazelcast to specify the partition- Returns:
- the partition key object, or null to fall back to the default partition calculation
-
getPartitioningAttributes
-