|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - V - public interface IncoherentDistributedCache<K,V>
An extension to DistributedCache providing incoherent features -- unlocked reads, unlocked puts, unsafe reads
(reading local values in vm or null), unlocked removes, unlocked containsKey etc
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
boolean |
unlockedContainsKey(Object key)
Same as Map.containsKey(Object) except this operation is performed without any locking |
V |
unlockedGet(K key,
boolean quiet)
Same as Map.get(Object) except this operation is performed without any locking |
TimestampedValue<V> |
unlockedGetTimestampedValue(K key,
boolean quiet)
Same as IncoherentDistributedCache#unlockedGet(Object) except returns the TimestampedValue instead
of the original value |
void |
unlockedPutNoReturn(K key,
V value)
Same as DistributedCache.putNoReturn(Object, Object) except that this operation is performed without any
locking. |
void |
unlockedRemoveNoReturn(Object key)
Same as DistributedCache.removeNoReturn(Object) except this operation is performed without any locking |
V |
unsafeGet(K key,
boolean quiet)
Returns the local value present for the key if present in the VM, otherwise returns null. |
TimestampedValue<V> |
unsafeGetTimestampedValue(K key,
boolean quiet)
Same as unsafeGet(Object, boolean) except returns the TimestampedValue
instead of the original value |
| Methods inherited from interface org.terracotta.cache.DistributedCache |
|---|
getConfig, getTimestampedValue, getTimestampedValueQuiet, localSize, putNoReturn, removeNoReturn, removeTimestampedValue, shutdown |
| Methods inherited from interface java.util.concurrent.ConcurrentMap |
|---|
putIfAbsent, remove, replace, replace |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from interface org.terracotta.locking.LockableMap |
|---|
createFinegrainedLock, lockEntry, unlockEntry |
| Method Detail |
|---|
V unlockedGet(K key,
boolean quiet)
Map.get(Object) except this operation is performed without any locking
This operation may fault in the value from the server if it is not present in the VM locally but present in the server
key - quiet -
TimestampedValue<V> unlockedGetTimestampedValue(K key,
boolean quiet)
IncoherentDistributedCache#unlockedGet(Object) except returns the TimestampedValue instead
of the original value
key - quiet -
V unsafeGet(K key,
boolean quiet)
If the value is not present in the local VM, it WILL NOT fault in the value from the server even when it is present on the server and will return null instead
Note: If quiet is true, it may return expired entries
key - key to lookupquiet - if true, does not update last access time and skips checking for expired entries otherwise updates
last access time and also checks for expired entries
TimestampedValue<V> unsafeGetTimestampedValue(K key,
boolean quiet)
unsafeGet(Object, boolean) except returns the TimestampedValue
instead of the original value
key - quiet -
void unlockedPutNoReturn(K key,
V value)
DistributedCache.putNoReturn(Object, Object) except that this operation is performed without any
locking.
key - value - void unlockedRemoveNoReturn(Object key)
DistributedCache.removeNoReturn(Object) except this operation is performed without any locking
key - boolean unlockedContainsKey(Object key)
Map.containsKey(Object) except this operation is performed without any locking
key -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||