Package org.glassfish.ha.store.api
Interface HashableKey
-
- All Known Implementing Classes:
StickyKey
public interface HashableKeyThis 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetHashKey()
-
-
-
Method Detail
-
getHashKey
Object getHashKey()
-
-