Package org.glassfish.ha.store.util
Interface KeyTransformer<K>
public interface KeyTransformer<K>
- Author:
- Mahesh Kannan
-
Method Summary
Modifier and TypeMethodDescriptionbyteArrayToKey(byte[] array, int startIndex, int len) Return the key from the byte[].byte[]keyToByteArray(K sessionKey) Called from BackingStore implementation to convert the given key into byte[]
-
Method Details
-
keyToByteArray
Called from BackingStore implementation to convert the given key into byte[] -
byteArrayToKey
Return the key from the byte[]. Two objects obtained from identical byte[] must satisfy both o1.equals(o2) and o1.hashCode() == o2.hashCode()- Returns:
- the key
-