インタフェースjava.util.concurrent.locks.Condition
の使用
-
Conditionを使用するパッケージ パッケージ 説明 java.util.concurrent.locks 組込みの同期および監視から区別された状態をロックおよび待機するためのフレームワークを提供するインタフェースおよびクラス。 -
-
java.util.concurrent.locksでのConditionの使用
Conditionを実装しているjava.util.concurrent.locksのクラス 修飾子と型 クラス 説明 class
AbstractQueuedLongSynchronizer.ConditionObject
Lock
実装の基盤として機能するAbstractQueuedLongSynchronizer
のCondition実装です。class
AbstractQueuedSynchronizer.ConditionObject
Lock
実装の基盤として機能するAbstractQueuedSynchronizer
のCondition実装です。Conditionを返すjava.util.concurrent.locksのメソッド 修飾子と型 メソッド 説明 Condition
Lock. newCondition()
このLock
インスタンスにバインドされた新しいCondition
インスタンスを返します。Condition
ReentrantLock. newCondition()
Condition
ReentrantReadWriteLock.ReadLock. newCondition()
ReadLocks
が状態をサポートしないため、UnsupportedOperationException
をスローします。Condition
ReentrantReadWriteLock.WriteLock. newCondition()
Condition型のパラメータを持つjava.util.concurrent.locksのメソッド 修飾子と型 メソッド 説明 protected Collection<Thread>
ReentrantLock. getWaitingThreads(Condition condition)
このロックに関連付けられた指定の状態を待機中のスレッドを含むコレクションを返します。protected Collection<Thread>
ReentrantReadWriteLock. getWaitingThreads(Condition condition)
書込みロックに関連付けられた指定の状態を待機中のスレッドを含むコレクションを返します。int
ReentrantLock. getWaitQueueLength(Condition condition)
このロックに関連付けられた指定の状態で待機中のスレッドの推定数を返します。int
ReentrantReadWriteLock. getWaitQueueLength(Condition condition)
書込みロックに関連付けられた指定の状態で待機中のスレッドの推定数を返します。boolean
ReentrantLock. hasWaiters(Condition condition)
このロックに関連付けられた指定の状態で待機しているスレッドが存在するかどうかを照会します。boolean
ReentrantReadWriteLock. hasWaiters(Condition condition)
この書込みロックに関連付けられた指定状態で待機しているスレッドが存在するかどうかを照会します。
-