Klasse NonFairReentrantLock

java.lang.Object
org.eclipse.net4j.util.concurrent.NonFairReentrantLock
Alle implementierten Schnittstellen:
Serializable, Lock
Bekannte direkte Unterklassen:
DelegableReentrantLock

public class NonFairReentrantLock extends Object implements Lock, Serializable
Seit:
3.6
Autor:
Eike Stepper
Siehe auch:
  • Konstruktordetails

    • NonFairReentrantLock

      public NonFairReentrantLock()
  • Methodendetails

    • lock

      public void lock()
      Angegeben von:
      lock in Schnittstelle Lock
    • lockInterruptibly

      public void lockInterruptibly() throws InterruptedException
      Angegeben von:
      lockInterruptibly in Schnittstelle Lock
      Löst aus:
      InterruptedException
    • tryLock

      public boolean tryLock()
      Angegeben von:
      tryLock in Schnittstelle Lock
    • tryLock

      public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException
      Angegeben von:
      tryLock in Schnittstelle Lock
      Löst aus:
      InterruptedException
    • unlock

      public void unlock()
      Angegeben von:
      unlock in Schnittstelle Lock
    • newCondition

      public Condition newCondition()
      Angegeben von:
      newCondition in Schnittstelle Lock
    • getHoldCount

      public int getHoldCount()
    • isHeldByCurrentThread

      public boolean isHeldByCurrentThread()
    • isLocked

      public boolean isLocked()
    • getOwner

      public Thread getOwner()
    • hasQueuedThreads

      public final boolean hasQueuedThreads()
    • hasQueuedThread

      public final boolean hasQueuedThread(Thread thread)
    • getQueueLength

      public final int getQueueLength()
    • hasWaiters

      public boolean hasWaiters(Condition condition)
    • getWaitQueueLength

      public int getWaitQueueLength(Condition condition)
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • getQueuedThreads

      protected Collection<Thread> getQueuedThreads()
    • getWaitingThreads

      protected Collection<Thread> getWaitingThreads(Condition condition)
    • isOwner

      protected boolean isOwner(Thread thread, Thread owner)