Modifier and Type | Class and Description |
---|---|
class |
TxCacheMap.Box |
protected class |
TxCacheMap.StrongBox |
protected class |
TxCacheMap.WeakBox |
Modifier and Type | Field and Description |
---|---|
protected RefResolver<java.lang.Object,TxCacheMap.Box> |
boxGetter |
protected java.util.Map<K,TxCacheMap.Box> |
M |
protected VBox<java.lang.Integer> |
sizebox |
protected HGTransactionManager |
txManager |
Constructor and Description |
---|
TxCacheMap(HGTransactionManager tManager,
java.lang.Class<? extends java.util.Map> mapImplementation,
java.lang.Object outer) |
Modifier and Type | Method and Description |
---|---|
TxCacheMap.Box |
boxOf(java.lang.Object key) |
void |
clear() |
void |
drop(java.lang.Object key) |
V |
get(java.lang.Object key) |
protected TxCacheMap.Box |
getBox(java.lang.Object key) |
boolean |
isReturnLatestAvailable() |
java.util.Set<K> |
keySet() |
void |
load(K key,
V value) |
int |
mapSize() |
void |
put(K key,
V value)
Override to maintain a global write map so that evicted versioned boxes from the cache
get re-attached upon reloading.
|
void |
remove(java.lang.Object key) |
void |
setReturnLatestAvailable(boolean returnLatestAvailable) |
int |
size() |
protected java.util.Map<K,TxCacheMap.Box> M
protected HGTransactionManager txManager
protected RefResolver<java.lang.Object,TxCacheMap.Box> boxGetter
protected VBox<java.lang.Integer> sizebox
public TxCacheMap(HGTransactionManager tManager, java.lang.Class<? extends java.util.Map> mapImplementation, java.lang.Object outer)
protected TxCacheMap.Box getBox(java.lang.Object key)
public TxCacheMap.Box boxOf(java.lang.Object key)
public void put(K key, V value)
public int mapSize()
public java.util.Set<K> keySet()
public boolean isReturnLatestAvailable()
public void setReturnLatestAvailable(boolean returnLatestAvailable)