public abstract class DataStoreEntryUpdater<K,V> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
_logger |
protected DataStoreContext<K,V> |
ctx |
| Constructor and Description |
|---|
DataStoreEntryUpdater() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
captureState(V v) |
abstract LoadResponseCommand<K,V> |
createLoadResponseCommand(DataStoreEntry<K,V> entry,
K k,
long minVersion) |
abstract SaveCommand<K,V> |
createSaveCommand(DataStoreEntry<K,V> entry,
K k,
V v) |
protected V |
deserializeV(byte[] rawV) |
abstract void |
executeSave(DataStoreEntry<K,V> entry,
SaveCommand<K,V> cmd) |
abstract void |
executeTouch(DataStoreEntry<K,V> entry,
TouchCommand<K,V> cmd) |
abstract V |
extractVFrom(LoadResponseCommand<K,V> cmd) |
abstract byte[] |
getState(V v) |
abstract V |
getV(DataStoreEntry<K,V> entry) |
void |
initialize(DataStoreContext<K,V> ctx) |
protected void |
printEntryInfo(String msg,
DataStoreEntry<K,V> entry,
K key) |
protected void |
updateMetaInfoInDataStoreEntry(DataStoreEntry<K,V> entry,
AbstractSaveCommand<K,V> cmd) |
protected static final transient Logger _logger
protected DataStoreContext<K,V> ctx
public void initialize(DataStoreContext<K,V> ctx)
protected byte[] captureState(V v) throws DataStoreException
DataStoreExceptionprotected V deserializeV(byte[] rawV) throws DataStoreException
DataStoreExceptionprotected void updateMetaInfoInDataStoreEntry(DataStoreEntry<K,V> entry, AbstractSaveCommand<K,V> cmd)
protected void printEntryInfo(String msg, DataStoreEntry<K,V> entry, K key)
public abstract SaveCommand<K,V> createSaveCommand(DataStoreEntry<K,V> entry, K k, V v)
public abstract LoadResponseCommand<K,V> createLoadResponseCommand(DataStoreEntry<K,V> entry, K k, long minVersion) throws DataStoreException
DataStoreExceptionpublic abstract void executeSave(DataStoreEntry<K,V> entry, SaveCommand<K,V> cmd) throws DataStoreException
DataStoreExceptionpublic abstract void executeTouch(DataStoreEntry<K,V> entry, TouchCommand<K,V> cmd) throws DataStoreException
DataStoreExceptionpublic abstract V getV(DataStoreEntry<K,V> entry) throws DataStoreException
DataStoreExceptionpublic abstract V extractVFrom(LoadResponseCommand<K,V> cmd) throws DataStoreException
DataStoreExceptionpublic abstract byte[] getState(V v) throws DataStoreException
DataStoreExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.