|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object java.util.concurrent.locks.AbstractOwnableSynchronizer java.util.concurrent.locks.AbstractQueuedSynchronizer org.jboss.netty.util.internal.NonReentrantLock
public final class NonReentrantLock
嵌套类摘要 |
---|
从类 java.util.concurrent.locks.AbstractQueuedSynchronizer 继承的嵌套类/接口 |
---|
java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject |
构造方法摘要 | |
---|---|
NonReentrantLock()
|
方法摘要 | |
---|---|
boolean |
isHeldByCurrentThread()
|
void |
lock()
|
void |
lockInterruptibly()
|
java.util.concurrent.locks.Condition |
newCondition()
|
boolean |
tryLock()
|
boolean |
tryLock(long time,
java.util.concurrent.TimeUnit unit)
|
void |
unlock()
|
从类 java.util.concurrent.locks.AbstractQueuedSynchronizer 继承的方法 |
---|
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedThreads, hasWaiters, isQueued, owns, release, releaseShared, toString, tryAcquireNanos, tryAcquireSharedNanos |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
构造方法详细信息 |
---|
public NonReentrantLock()
方法详细信息 |
---|
public void lock()
java.util.concurrent.locks.Lock
中的 lock
public void lockInterruptibly() throws java.lang.InterruptedException
java.util.concurrent.locks.Lock
中的 lockInterruptibly
java.lang.InterruptedException
public boolean tryLock()
java.util.concurrent.locks.Lock
中的 tryLock
public boolean tryLock(long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.util.concurrent.locks.Lock
中的 tryLock
java.lang.InterruptedException
public void unlock()
java.util.concurrent.locks.Lock
中的 unlock
public boolean isHeldByCurrentThread()
public java.util.concurrent.locks.Condition newCondition()
java.util.concurrent.locks.Lock
中的 newCondition
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |