Class StringAndPartitionAwarePartitioningStrategy

    • Method Detail

      • getPartitionKey

        public java.lang.Object getPartitionKey​(java.lang.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