Class StringPartitioningStrategy

All Implemented Interfaces:
PartitioningStrategy, Serializable

public class StringPartitioningStrategy extends Object implements PartitioningStrategy
See Also:
  • Field Details

  • Constructor Details

    • StringPartitioningStrategy

      public StringPartitioningStrategy()
  • Method Details

    • 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
      key - actual key object used by Hazelcast to specify the partition
      the partition key object, or null to fallback to the default partition calculation
    • getBaseName

      public static String getBaseName(String name)
    • getPartitionKey

      public static String getPartitionKey(String key)