org.smallmind.quorum.cache
Interface LockingCache<K,V>
- All Known Implementing Classes:
- AbstractCache, LockingCacheEnforcer, OrderedCache, UnorderedCache
public interface LockingCache<K,V>
|
Method Summary |
void |
clear()
|
void |
close()
|
|
executeLockedCallback(KeyLock keyLock,
LockedCallback<K,R> callback)
|
boolean |
exists(KeyLock keyLock,
K key)
|
V |
get(KeyLock keyLock,
K key,
Object... parameters)
|
String |
getCacheName()
|
long |
getLockTimeout()
|
boolean |
isClosed()
|
KeyLock |
lock(KeyLock keyLock,
K key)
|
V |
put(KeyLock keyLock,
K key,
V value)
|
V |
putIfAbsent(KeyLock keyLock,
K key,
V value)
|
V |
remove(KeyLock keyLock,
K key)
|
int |
size()
|
void |
unlock(KeyLock keyLock,
K key)
|
size
int size()
getCacheName
String getCacheName()
get
V get(KeyLock keyLock,
K key,
Object... parameters)
remove
V remove(KeyLock keyLock,
K key)
put
V put(KeyLock keyLock,
K key,
V value)
putIfAbsent
V putIfAbsent(KeyLock keyLock,
K key,
V value)
exists
boolean exists(KeyLock keyLock,
K key)
clear
void clear()
isClosed
boolean isClosed()
close
void close()
getLockTimeout
long getLockTimeout()
lock
KeyLock lock(KeyLock keyLock,
K key)
unlock
void unlock(KeyLock keyLock,
K key)
executeLockedCallback
<R> R executeLockedCallback(KeyLock keyLock,
LockedCallback<K,R> callback)
Copyright © 2011. All Rights Reserved.