protected final class ConcurrentReferenceHashMap.Segment extends ReentrantLockSE
コンストラクターと説明 |
---|
Segment(int initialCapacity) |
修飾子と型 | メソッドと説明 |
---|---|
void | clear() このセグメントからすべてのアイテムをクリアします。 |
<T> T | doTask(int hash, ObjectSE key, org.springframework.util.ConcurrentReferenceHashMap.Task<T> task) このセグメントに更新操作を適用します。 |
int | getCount() このセグメントの参照の総数を返します。 |
ConcurrentReferenceHashMap.Reference<K, V> | getReference(ObjectSE key, int hash, ConcurrentReferenceHashMap.Restructure restructure) |
int | getSize() 現在の参照配列のサイズを返します。 |
protected void | restructureIfNecessary(boolean allowResize) 必要に応じて、基になるデータ構造を再構築します。 |
getHoldCountSE, getOwnerSE, getQueuedThreadsSE, getQueueLengthSE, getWaitingThreadsSE, getWaitQueueLengthSE, hasQueuedThreadSE, hasQueuedThreadsSE, hasWaitersSE, isFairSE, isHeldByCurrentThreadSE, isLockedSE, lockSE, lockInterruptiblySE, newConditionSE, toStringSE, tryLockSE, tryLockSE, unlockSE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
@Nullable public ConcurrentReferenceHashMap.Reference<K,V> getReference(@Nullable ObjectSE key, int hash, ConcurrentReferenceHashMap.Restructure restructure)
@Nullable public <T> T doTask(int hash, ObjectSE 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()