Interface HashableKey

  • All Known Implementing Classes:
    StickyKey

    public interface HashableKey
    This interface is implemented by objects that are used as Keys in BackingStore operations. The main use of this interface is to provide a hint to the BackingStore providers so that all keys that return the same object (actually same hashcode) from getHashKey will be 'grouped' together. For example, for a BackingStore that uses memory replication, if two keys k1 and k2 implement this interface and return the same Object from getHashKey, then their values will be replicated to the same replication instance.
    Author:
    Mahesh Kannan
    • Method Detail

      • getHashKey

        Object getHashKey()