Package org.shoal.ha.cache.impl.store
Class StoreableDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>
- java.lang.Object
-
- org.shoal.ha.cache.impl.store.DataStoreEntryUpdater<K,V>
-
- org.shoal.ha.cache.impl.store.StoreableDataStoreEntryUpdater<K,V>
-
public class StoreableDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable> extends DataStoreEntryUpdater<K,V>
- Author:
- Mahesh Kannan
-
-
Field Summary
-
Fields inherited from class org.shoal.ha.cache.impl.store.DataStoreEntryUpdater
_logger, ctx
-
-
Constructor Summary
Constructors Constructor Description StoreableDataStoreEntryUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadResponseCommand<K,V>createLoadResponseCommand(DataStoreEntry<K,V> entry, K k, long minVersion)SaveCommand<K,V>createSaveCommand(DataStoreEntry<K,V> entry, K k, V v)voidexecuteSave(DataStoreEntry<K,V> entry, SaveCommand<K,V> saveCmd)voidexecuteTouch(DataStoreEntry<K,V> entry, TouchCommand<K,V> touchCmd)VextractVFrom(LoadResponseCommand<K,V> cmd)byte[]getState(V v)VgetV(DataStoreEntry<K,V> entry)-
Methods inherited from class org.shoal.ha.cache.impl.store.DataStoreEntryUpdater
captureState, deserializeV, initialize, printEntryInfo, updateMetaInfoInDataStoreEntry
-
-
-
-
Method Detail
-
createSaveCommand
public SaveCommand<K,V> createSaveCommand(DataStoreEntry<K,V> entry, K k, V v)
- Specified by:
createSaveCommandin classDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>
-
createLoadResponseCommand
public LoadResponseCommand<K,V> createLoadResponseCommand(DataStoreEntry<K,V> entry, K k, long minVersion) throws DataStoreException
- Specified by:
createLoadResponseCommandin classDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>- Throws:
DataStoreException
-
extractVFrom
public V extractVFrom(LoadResponseCommand<K,V> cmd) throws DataStoreException
- Specified by:
extractVFromin classDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>- Throws:
DataStoreException
-
executeSave
public void executeSave(DataStoreEntry<K,V> entry, SaveCommand<K,V> saveCmd) throws DataStoreException
- Specified by:
executeSavein classDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>- Throws:
DataStoreException
-
executeTouch
public void executeTouch(DataStoreEntry<K,V> entry, TouchCommand<K,V> touchCmd) throws DataStoreException
- Specified by:
executeTouchin classDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>- Throws:
DataStoreException
-
getState
public byte[] getState(V v) throws DataStoreException
- Specified by:
getStatein classDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>- Throws:
DataStoreException
-
getV
public V getV(DataStoreEntry<K,V> entry) throws DataStoreException
- Specified by:
getVin classDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>- Throws:
DataStoreException
-
-