ManagedConcurrentMap.Segment
public abstract static class AbstractConcurrentMap.Segment<K,V> extends AbstractConcurrentMapBase.Segment
table
Modifier | Constructor | Description |
---|---|---|
protected |
Segment(int initialCapacity) |
Modifier and Type | Method | Description |
---|---|---|
protected abstract AbstractConcurrentMap.Entry<K,V> |
createEntry(K key,
int hash,
V value) |
|
V |
get(K key,
int hash) |
|
AbstractConcurrentMap.Entry<K,V> |
getOrPut(K key,
int hash,
V value) |
|
AbstractConcurrentMap.Entry |
put(K key,
int hash,
V value) |
|
void |
remove(K key,
int hash) |
getExclusiveOwnerThread, setExclusiveOwnerThread
acquire, 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
isHeldExclusively, lock, tryAcquire, tryRelease, unlock
public final AbstractConcurrentMap.Entry<K,V> getOrPut(K key, int hash, V value)
public final AbstractConcurrentMap.Entry put(K key, int hash, V value)
public void remove(K key, int hash)
protected abstract AbstractConcurrentMap.Entry<K,V> createEntry(K key, int hash, V value)