Interface AffinityKeyMapper

    • Method Detail

      • affinityKey

        Object affinityKey​(Object key)
        Deprecated.
        Maps passed in key to an alternate key which will be used for node affinity.
        Parameters:
        key - Key to map.
        Returns:
        Key to be used for node-to-affinity mapping (may be the same key as passed in).
      • reset

        void reset()
        Deprecated.
        Resets cache affinity mapper to its initial state. This method will be called by the system any time the affinity mapper has been sent to remote node where it has to be reinitialized. If your implementation of affinity mapper has no initialization logic, leave this method empty.