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<Object,TxCacheMap.Box> |
boxGetter |
protected Map<K,TxCacheMap.Box> |
M |
protected VBox<Integer> |
sizebox |
protected HGTransactionManager |
txManager |
Constructor and Description |
---|
TxCacheMap(HGTransactionManager tManager,
Class<? extends Map> mapImplementation,
Object outer) |
Modifier and Type | Method and Description |
---|---|
TxCacheMap.Box |
boxOf(Object key) |
void |
clear() |
void |
drop(Object key) |
V |
get(Object key) |
protected TxCacheMap.Box |
getBox(Object key) |
boolean |
isReturnLatestAvailable() |
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(Object key) |
void |
setReturnLatestAvailable(boolean returnLatestAvailable) |
int |
size() |
protected Map<K,TxCacheMap.Box> M
protected HGTransactionManager txManager
protected RefResolver<Object,TxCacheMap.Box> boxGetter
public TxCacheMap(HGTransactionManager tManager, Class<? extends Map> mapImplementation, Object outer)
protected TxCacheMap.Box getBox(Object key)
public TxCacheMap.Box boxOf(Object key)
public void put(K key, V value)
public int mapSize()
public boolean isReturnLatestAvailable()
public void setReturnLatestAvailable(boolean returnLatestAvailable)
Copyright © 2015. All rights reserved.