org.jboss.netty.util.internal
类 NonReentrantLock

java.lang.Object
  继承者 java.util.concurrent.locks.AbstractOwnableSynchronizer
      继承者 java.util.concurrent.locks.AbstractQueuedSynchronizer
          继承者 org.jboss.netty.util.internal.NonReentrantLock
所有已实现的接口:
java.io.Serializable, java.util.concurrent.locks.Lock

public final class NonReentrantLock
extends java.util.concurrent.locks.AbstractQueuedSynchronizer
implements java.util.concurrent.locks.Lock

另请参见:
序列化表格

嵌套类摘要
 
从类 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
 

构造方法详细信息

NonReentrantLock

public NonReentrantLock()
方法详细信息

lock

public void lock()
指定者:
接口 java.util.concurrent.locks.Lock 中的 lock

lockInterruptibly

public void lockInterruptibly()
                       throws java.lang.InterruptedException
指定者:
接口 java.util.concurrent.locks.Lock 中的 lockInterruptibly
抛出:
java.lang.InterruptedException

tryLock

public boolean tryLock()
指定者:
接口 java.util.concurrent.locks.Lock 中的 tryLock

tryLock

public boolean tryLock(long time,
                       java.util.concurrent.TimeUnit unit)
                throws java.lang.InterruptedException
指定者:
接口 java.util.concurrent.locks.Lock 中的 tryLock
抛出:
java.lang.InterruptedException

unlock

public void unlock()
指定者:
接口 java.util.concurrent.locks.Lock 中的 unlock

isHeldByCurrentThread

public boolean isHeldByCurrentThread()

newCondition

public java.util.concurrent.locks.Condition newCondition()
指定者:
接口 java.util.concurrent.locks.Lock 中的 newCondition