org.glassfish.ha.store.api
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 Summary
 Object getHashKey()
           
 

Method Detail

getHashKey

Object getHashKey()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.