org.terracotta.cache
Interface IncoherentDistributedCacheInternals<K,V>

All Superinterfaces:
ConcurrentMap<K,V>, DistributedCache<K,V>, IncoherentDistributedCache<K,V>, LockableMap<K>, Map<K,V>
All Known Implementing Classes:
TerracottaDistributedCache

public interface IncoherentDistributedCacheInternals<K,V>
extends IncoherentDistributedCache<K,V>


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 void unlockedPutIfAbsentNoReturn(K key, V value)
          Same as ConcurrentMap.putIfAbsent(Object, Object) except this operation is performed without any locking and the is performed only when a current mapping exists and is equal to currentValue
 void unlockedRemoveNoReturn(K key, V currentValue)
          Same as DistributedCache.removeNoReturn(Object) except this operation is performed without any locking and the remove is performed only when a current mapping exists and is equal to currentValue
 void unlockedReplaceNoReturn(K key, V currentValue, V newValue)
          Same as DistributedCache.putNoReturn(Object, Object) except that this operation is performed without any locking and puts in the cache only if there is already a mapping for key that is equal to currentValue
 
Methods inherited from interface org.terracotta.cache.IncoherentDistributedCache
unlockedContainsKey, unlockedGet, unlockedGetTimestampedValue, unlockedPutNoReturn, unlockedRemoveNoReturn, unsafeGet, unsafeGetTimestampedValue
 
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

unlockedPutIfAbsentNoReturn

void unlockedPutIfAbsentNoReturn(K key,
                                 V value)
Same as ConcurrentMap.putIfAbsent(Object, Object) except this operation is performed without any locking and the is performed only when a current mapping exists and is equal to currentValue

Parameters:
key -
currentValue -

unlockedRemoveNoReturn

void unlockedRemoveNoReturn(K key,
                            V currentValue)
Same as DistributedCache.removeNoReturn(Object) except this operation is performed without any locking and the remove is performed only when a current mapping exists and is equal to currentValue

Parameters:
key -
currentValue -

unlockedReplaceNoReturn

void unlockedReplaceNoReturn(K key,
                             V currentValue,
                             V newValue)
Same as DistributedCache.putNoReturn(Object, Object) except that this operation is performed without any locking and puts in the cache only if there is already a mapping for key that is equal to currentValue

Parameters:
key -
currentValue -
newValue -


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.