public class LockableCacheEnforcer<K,V> extends Object implements LockableCache<K,V>
| Constructor and Description |
|---|
LockableCacheEnforcer(LockingCache<K,V> cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
<R> R |
executeLockedCallback(LockedCallback<K,R> callback) |
boolean |
exists(K key) |
V |
get(K key,
Object... parameters) |
String |
getCacheName() |
long |
getLockTimeout() |
boolean |
isClosed() |
void |
lock(K key) |
V |
put(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
V |
remove(K key) |
int |
size() |
void |
unlock(K key) |
public LockableCacheEnforcer(LockingCache<K,V> cache)
public long getLockTimeout()
getLockTimeout in interface LockableCache<K,V>public void lock(K key)
lock in interface LockableCache<K,V>public void unlock(K key)
unlock in interface LockableCache<K,V>public <R> R executeLockedCallback(LockedCallback<K,R> callback)
executeLockedCallback in interface LockableCache<K,V>public String getCacheName()
getCacheName in interface Cache<K,V>Copyright © 2012. All Rights Reserved.