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
|
Method Summary |
LoadResponseCommand<K,V> |
createLoadResponseCommand(DataStoreEntry<K,V> entry,
K k,
long minVersion)
|
SaveCommand<K,V> |
createSaveCommand(DataStoreEntry<K,V> entry,
K k,
V v)
|
void |
executeSave(DataStoreEntry<K,V> entry,
SaveCommand<K,V> saveCmd)
|
void |
executeTouch(DataStoreEntry<K,V> entry,
TouchCommand<K,V> touchCmd)
|
V |
extractVFrom(LoadResponseCommand<K,V> cmd)
|
byte[] |
getState(V v)
|
V |
getV(DataStoreEntry<K,V> entry)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StoreableDataStoreEntryUpdater
public StoreableDataStoreEntryUpdater()
createSaveCommand
public SaveCommand<K,V> createSaveCommand(DataStoreEntry<K,V> entry,
K k,
V v)
- Specified by:
createSaveCommand in class DataStoreEntryUpdater<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:
createLoadResponseCommand in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>
- Throws:
DataStoreException
extractVFrom
public V extractVFrom(LoadResponseCommand<K,V> cmd)
throws DataStoreException
- Specified by:
extractVFrom in class DataStoreEntryUpdater<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:
executeSave in class DataStoreEntryUpdater<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:
executeTouch in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>
- Throws:
DataStoreException
getState
public byte[] getState(V v)
throws DataStoreException
- Specified by:
getState in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>
- Throws:
DataStoreException
getV
public V getV(DataStoreEntry<K,V> entry)
throws DataStoreException
- Specified by:
getV in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.api.Storeable>
- Throws:
DataStoreException
Copyright © 2012. All Rights Reserved.