protected final class ConcurrentReferenceHashMap.Segment extends ReentrantLock
Constructor and Description |
---|
Segment(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
<T> T |
doTask(int hash,
Object key,
cn.orionsec.kit.lang.define.collect.ConcurrentReferenceHashMap.Task<T> task) |
int |
getCount() |
ConcurrentReferenceHashMap.Reference<K,V> |
getReference(Object key,
int hash,
ConcurrentReferenceHashMap.Restructure restructure) |
int |
getSize() |
protected void |
restructureIfNecessary(boolean allowResize) |
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
public ConcurrentReferenceHashMap.Reference<K,V> getReference(Object key, int hash, ConcurrentReferenceHashMap.Restructure restructure)
public <T> T doTask(int hash, Object key, cn.orionsec.kit.lang.define.collect.ConcurrentReferenceHashMap.Task<T> task)
public void clear()
protected final void restructureIfNecessary(boolean allowResize)
public final int getSize()
public final int getCount()
Copyright © 2024. All rights reserved.