Interface ClientPartitionAwarenessMapper

    • Method Detail

      • partition

        int partition​(Object key)
        Gets a partition number for a given key starting from 0. Be sure that a key maps to the same partition produced by the AffinityFunction.partition(Object) method.
        Parameters:
        key - Key to get partition for.
        Returns:
        Partition number for a given key.