public class MultiProcessSafePersistentIndexedCache<K,V> extends Object implements PersistentIndexedCache<K,V>, UnitOfWorkParticipant, Closeable
| Constructor and Description |
|---|
MultiProcessSafePersistentIndexedCache(Factory<BTreePersistentIndexedCache<K,V>> factory,
FileAccess fileAccess) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
V |
get(K key)
Fetches the value of a key from this cache.
|
void |
onEndWork() |
void |
onStartWork(String operationDisplayName) |
void |
put(K key,
V value)
Puts/replaces the value of a key in this cache.
|
void |
remove(K key)
Removes a key-value mapping from this cache.
|
public MultiProcessSafePersistentIndexedCache(Factory<BTreePersistentIndexedCache<K,V>> factory, FileAccess fileAccess)
public V get(K key)
PersistentIndexedCacheget in interface PersistentIndexedCache<K,V>public void put(K key, V value)
PersistentIndexedCacheput in interface PersistentIndexedCache<K,V>public void remove(K key)
PersistentIndexedCacheremove in interface PersistentIndexedCache<K,V>public void onStartWork(String operationDisplayName)
onStartWork in interface UnitOfWorkParticipantpublic void onEndWork()
onEndWork in interface UnitOfWorkParticipantpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2013. All rights reserved