Uses of Interface
java.util.concurrent.locks.Condition
-
Packages that use Condition 软件包 描述 java.util.concurrent.locks 接口和类,提供用于锁定和等待与内置同步和监视器不同的条件的框架。 -
-
Uses of Condition in java.util.concurrent.locks
Classes in java.util.concurrent.locks that implement Condition 变量和类型 类 描述 class
AbstractQueuedLongSynchronizer.ConditionObject
AbstractQueuedLongSynchronizer
的条件实现,作为Lock
实现的基础。class
AbstractQueuedSynchronizer.ConditionObject
AbstractQueuedSynchronizer
的条件实施,作为Lock
实施的基础。Methods in java.util.concurrent.locks that return Condition 变量和类型 方法 描述 Condition
Lock. newCondition()
返回一个新Condition
绑定到该实例Lock
实例。Condition
ReentrantLock. newCondition()
Condition
ReentrantReadWriteLock.ReadLock. newCondition()
抛出UnsupportedOperationException
因为ReadLocks
不支持条件。Condition
ReentrantReadWriteLock.WriteLock. newCondition()
Methods in java.util.concurrent.locks with parameters of type Condition 变量和类型 方法 描述 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)
Queries whether any threads are waiting on the given condition associated with the write lock.
-