org.shoal.ha.cache.impl.store
Class SimpleDataStoreEntryUpdater<K,V>
java.lang.Object
org.shoal.ha.cache.impl.store.DataStoreEntryUpdater<K,V>
org.shoal.ha.cache.impl.store.SimpleDataStoreEntryUpdater<K,V>
public class SimpleDataStoreEntryUpdater<K,V>
- extends DataStoreEntryUpdater<K,V>
An entry updater used for plain Serializable POJOs
- 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> cmd)
|
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 |
SimpleDataStoreEntryUpdater
public SimpleDataStoreEntryUpdater()
createSaveCommand
public SaveCommand<K,V> createSaveCommand(DataStoreEntry<K,V> entry,
K k,
V v)
- Specified by:
createSaveCommand in class DataStoreEntryUpdater<K,V>
createLoadResponseCommand
public LoadResponseCommand<K,V> createLoadResponseCommand(DataStoreEntry<K,V> entry,
K k,
long minVersion)
- Specified by:
createLoadResponseCommand in class DataStoreEntryUpdater<K,V>
executeSave
public void executeSave(DataStoreEntry<K,V> entry,
SaveCommand<K,V> cmd)
- Specified by:
executeSave in class DataStoreEntryUpdater<K,V>
executeTouch
public void executeTouch(DataStoreEntry<K,V> entry,
TouchCommand<K,V> touchCmd)
throws DataStoreException
- Specified by:
executeTouch in class DataStoreEntryUpdater<K,V>
- Throws:
DataStoreException
getV
public V getV(DataStoreEntry<K,V> entry)
throws DataStoreException
- Specified by:
getV in class DataStoreEntryUpdater<K,V>
- Throws:
DataStoreException
getState
public byte[] getState(V v)
throws DataStoreException
- Specified by:
getState in class DataStoreEntryUpdater<K,V>
- Throws:
DataStoreException
extractVFrom
public V extractVFrom(LoadResponseCommand<K,V> cmd)
throws DataStoreException
- Specified by:
extractVFrom in class DataStoreEntryUpdater<K,V>
- Throws:
DataStoreException
Copyright © 2012. All Rights Reserved.