クラス ConcurrentReferenceHashMap.Segment
java.lang.ObjectSE
java.util.concurrent.locks.ReentrantLockSE
org.springframework.util.ConcurrentReferenceHashMap.Segment
- 実装されているすべてのインターフェース:
SerializableSE, LockSE
- 含まれているクラス:
ConcurrentReferenceHashMap<K,V>
同時パフォーマンスを向上させるためにマップを分割するために使用される単一のセグメント。
- 導入:
- 3.2
- 作成者:
- Phillip Webb, Juergen Hoeller, Brian Clozel
- 関連事項:
コンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明voidclear()このセグメントからすべてのアイテムをクリアします。intgetCount()このセグメントの参照の総数を返します。getReference(@Nullable ObjectSE key, int hash, ConcurrentReferenceHashMap.Restructure restructure) intgetSize()現在の参照配列のサイズを返します。クラス ReentrantLockSE から継承されたメソッド
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreadsSE, getWaitQueueLengthSE, hasQueuedThreadSE, hasQueuedThreads, hasWaitersSE, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLockSE, unlock
コンストラクターの詳細
Segment
public Segment(int initialSize, int resizeThreshold)
メソッドの詳細
getReference
public @Nullable ConcurrentReferenceHashMap.Reference<K,V> getReference(@Nullable ObjectSE key, int hash, ConcurrentReferenceHashMap.Restructure restructure) clear
public void clear()このセグメントからすべてのアイテムをクリアします。getSize
public int getSize()現在の参照配列のサイズを返します。getCount
public int getCount()このセグメントの参照の総数を返します。