Package org.codehaus.groovy.util
Class AbstractConcurrentMap.Segment<K,V>
- java.lang.Object
- 
- java.util.concurrent.locks.AbstractOwnableSynchronizer
- 
- java.util.concurrent.locks.AbstractQueuedSynchronizer
- 
- org.codehaus.groovy.util.LockableObject
- 
- org.codehaus.groovy.util.AbstractConcurrentMapBase.Segment
- 
- org.codehaus.groovy.util.AbstractConcurrentMap.Segment<K,V>
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 - Direct Known Subclasses:
- ManagedConcurrentMap.Segment
 - Enclosing class:
- AbstractConcurrentMap<K,V>
 
 public abstract static class AbstractConcurrentMap.Segment<K,V> extends AbstractConcurrentMapBase.Segment - See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.codehaus.groovy.util.AbstractConcurrentMapBase.Segmenttable
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedSegment(int initialCapacity)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AbstractConcurrentMap.Entry<K,V>createEntry(K key, int hash, V value)Vget(K key, int hash)AbstractConcurrentMap.Entry<K,V>getOrPut(K key, int hash, V value)AbstractConcurrentMap.Entryput(K key, int hash, V value)voidremove(K key, int hash)- 
Methods inherited from class org.codehaus.groovy.util.LockableObjectisHeldExclusively, lock, tryAcquire, tryRelease, unlock
 - 
Methods inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizeracquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isQueued, owns, release, releaseShared, setState, toString, tryAcquireNanos, tryAcquireShared, tryAcquireSharedNanos, tryReleaseShared
 
- 
 
- 
- 
- 
Method Detail- 
getOrPutpublic final AbstractConcurrentMap.Entry<K,V> getOrPut(K key, int hash, V value) 
 - 
putpublic final AbstractConcurrentMap.Entry put(K key, int hash, V value) 
 - 
removepublic void remove(K key, int hash) 
 - 
createEntryprotected abstract AbstractConcurrentMap.Entry<K,V> createEntry(K key, int hash, V value) 
 
- 
 
-