public abstract static class AbstractConcurrentMap.Segment<K,V> extends AbstractConcurrentMapBase.Segment
table
Modifier | Constructor and Description |
---|---|
protected |
AbstractConcurrentMap.Segment(int initialCapacity) |
Modifier and Type | Method and 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) |
isHeldExclusively, lock, tryAcquire, tryRelease, unlock
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
protected AbstractConcurrentMap.Segment(int initialCapacity)
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)