Package org.eclipse.net4j.util.concurrent

# 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:
  - Serialisierte Form

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`NonFairReentrantLock()`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`int`
`getHoldCount()`
`Thread`
`getOwner()`
`protected Collection<Thread>`
`getQueuedThreads()`
`final int`
`getQueueLength()`
`protected Collection<Thread>`
`getWaitingThreads(Condition condition)`
`int`
`getWaitQueueLength(Condition condition)`
`final boolean`
`hasQueuedThread(Thread thread)`
`final boolean`
`hasQueuedThreads()`
`boolean`
`hasWaiters(Condition condition)`
`boolean`
`isHeldByCurrentThread()`
`boolean`
`isLocked()`
`protected boolean`
`isOwner(Thread thread, Thread owner)`
`void`
`lock()`
`void`
`lockInterruptibly()`
`Condition`
`newCondition()`
`String`
`toString()`
`boolean`
`tryLock()`
`boolean`
`tryLock(long timeout, TimeUnit unit)`
`void`
`unlock()`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

## 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)