protected final class ConcurrentReferenceHashMap.Segment
extends java.util.concurrent.locks.ReentrantLock| コンストラクターと説明 |
|---|
Segment(int initialCapacity) |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | clear() このセグメントからすべてのアイテムをクリアします。 |
<T> T | doTask(int hash, java.lang.Object key, org.springframework.util.ConcurrentReferenceHashMap.Task<T> task) このセグメントに更新操作を適用します。 |
int | getCount() このセグメントの参照の総数を返します。 |
ConcurrentReferenceHashMap.Reference<K, V> | getReference(java.lang.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@Nullable public ConcurrentReferenceHashMap.Reference<K,V> getReference(@Nullable java.lang.Object key, int hash, ConcurrentReferenceHashMap.Restructure restructure)
@Nullable public <T> T doTask(int hash, @Nullable java.lang.Object key, org.springframework.util.ConcurrentReferenceHashMap.Task<T> task)
hash - キーのハッシュ key - キー task - 更新操作 public void clear()
protected final void restructureIfNecessary(boolean allowResize)
allowResize - サイズ変更が許可されている場合 public final int getSize()
public final int getCount()