public class SelectableConcurrentHashMap.Segment extends ReentrantReadWriteLock
ReentrantReadWriteLock.ReadLock, ReentrantReadWriteLock.WriteLock
Modifier and Type | Field and Description |
---|---|
protected int |
count
The number of elements in this segment's region.
|
protected SelectableConcurrentHashMap.HashEntry[] |
table
The per-segment table.
|
Modifier | Constructor and Description |
---|---|
protected |
Segment(int initialCapacity,
float lf) |
Modifier and Type | Method and Description |
---|---|
protected void |
clear() |
protected SelectableConcurrentHashMap.HashEntry |
createHashEntry(Object key,
int hash,
SelectableConcurrentHashMap.HashEntry next,
Element value,
long sizeOf) |
protected SelectableConcurrentHashMap.HashEntry |
getFirst(int hash)
Returns properly casted first entry of bin for given hash.
|
protected Iterator<SelectableConcurrentHashMap.HashEntry> |
iterator() |
protected void |
postInstall(Object key,
Element value) |
protected void |
preRemove(SelectableConcurrentHashMap.HashEntry e) |
protected Element |
put(Object key,
int hash,
Element value,
long sizeOf,
boolean onlyIfAbsent,
boolean fire) |
void |
recalculateSize(Object key,
int hash) |
protected SelectableConcurrentHashMap.HashEntry |
relinkHashEntry(SelectableConcurrentHashMap.HashEntry e,
SelectableConcurrentHashMap.HashEntry next) |
getOwner, getQueuedReaderThreads, getQueuedThreads, getQueuedWriterThreads, getQueueLength, getReadHoldCount, getReadLockCount, getWaitingThreads, getWaitQueueLength, getWriteHoldCount, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isWriteLocked, isWriteLockedByCurrentThread, readLock, toString, writeLock
protected volatile int count
protected volatile SelectableConcurrentHashMap.HashEntry[] table
protected void preRemove(SelectableConcurrentHashMap.HashEntry e)
protected SelectableConcurrentHashMap.HashEntry getFirst(int hash)
protected SelectableConcurrentHashMap.HashEntry createHashEntry(Object key, int hash, SelectableConcurrentHashMap.HashEntry next, Element value, long sizeOf)
protected SelectableConcurrentHashMap.HashEntry relinkHashEntry(SelectableConcurrentHashMap.HashEntry e, SelectableConcurrentHashMap.HashEntry next)
protected void clear()
public void recalculateSize(Object key, int hash)
protected Element put(Object key, int hash, Element value, long sizeOf, boolean onlyIfAbsent, boolean fire)
protected Iterator<SelectableConcurrentHashMap.HashEntry> iterator()
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.