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 Modifier and Type Class 描述 class
AbstractQueuedLongSynchronizer.ConditionObject
AbstractQueuedLongSynchronizer
的条件实现作为Lock
实现的基础。class
AbstractQueuedSynchronizer.ConditionObject
AbstractQueuedSynchronizer
的条件实施作为Lock
实施的基础。Methods in java.util.concurrent.locks that return Condition Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 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.
-