java.lang.Object
java.util.concurrent.locks.ReentrantReadWriteLock
com.tlcsdm.core.concurrent.IndustrialHashMap.Segment<K,V>
- 所有已实现的接口:
Serializable,ReadWriteLock
- 封闭类:
IndustrialHashMap<K,V>
分段结构,每个分段独立加锁
-
嵌套类概要
从类继承的嵌套类/接口 java.util.concurrent.locks.ReentrantReadWriteLock
ReentrantReadWriteLock.ReadLock, ReentrantReadWriteLock.WriteLock -
字段概要
字段修饰符和类型字段说明(专用程序包) int(专用程序包) long(专用程序包) final float(专用程序包) int(专用程序包) intprivate static final long(专用程序包) IndustrialHashMap.HashEntry<K,V>[] (专用程序包) int -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) voidcleanup()(专用程序包) IndustrialHashMap.HashEntry<K, V> getFirst(int hash) (专用程序包) V(专用程序包) VreadValueUnderLock(Object key, int hash) (专用程序包) voidrehash()(专用程序包) V(专用程序包) voidsetTable(IndustrialHashMap.HashEntry<K, V>[] newTable) private void从类继承的方法 java.util.concurrent.locks.ReentrantReadWriteLock
getOwner, getQueuedReaderThreads, getQueuedThreads, getQueuedWriterThreads, getQueueLength, getReadHoldCount, getReadLockCount, getWaitingThreads, getWaitQueueLength, getWriteHoldCount, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isWriteLocked, isWriteLockedByCurrentThread, readLock, toString, writeLock
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
table
-
count
volatile int count -
modCount
volatile int modCount -
loadFactor
final float loadFactor -
threshold
int threshold -
lastAccessTime
volatile long lastAccessTime -
operationCount
volatile int operationCount
-
-
构造器详细资料
-
Segment
Segment(int initialCapacity, float loadFactor)
-
-
方法详细资料
-
setTable
-
getFirst
-
readValueUnderLock
-
put
-
remove
-
rehash
void rehash() -
updateAccessTime
private void updateAccessTime() -
cleanup
void cleanup()
-