Package org.eclipse.net4j.util.concurrent

# Klasse RWLock

java.lang.Object
java.util.concurrent.locks.ReentrantReadWriteLock
org.eclipse.net4j.util.concurrent.RWLock

Alle implementierten Schnittstellen:
  `Serializable`, `ReadWriteLock`

public class RWLock extends ReentrantReadWriteLock

Autor:
  Eike Stepper
Siehe auch:
  - Serialisierte Form

## Verschachtelte Klassen - Übersicht

## Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.util.concurrent.locks.ReentrantReadWriteLock

`ReentrantReadWriteLock.ReadLock, ReentrantReadWriteLock.WriteLock`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`RWLock(long timeoutMillis)`
`RWLock(long timeoutMillis, boolean fair)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`static <V> V`
`call(Callable<V> callable, Lock lock, long timeoutMillis)`
`void`
`read(Runnable runnable)`
`<V> V`
`read(Callable<V> callable)`
`static void`
`run(Runnable runnable, Lock lock, long timeoutMillis)`
`void`
`write(Runnable runnable)`
`<V> V`
`write(Callable<V> callable)`

### Von Klasse geerbte Methoden java.util.concurrent.locks.ReentrantReadWriteLock

`getOwner, getQueuedReaderThreads, getQueuedThreads, getQueuedWriterThreads, getQueueLength, getReadHoldCount, getReadLockCount, getWaitingThreads, getWaitQueueLength, getWriteHoldCount, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isWriteLocked, isWriteLockedByCurrentThread, readLock, toString, writeLock`

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

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

## Konstruktordetails

### RWLock

public RWLock(long timeoutMillis)

### RWLock

public RWLock(long timeoutMillis, boolean fair)

## Methodendetails

### read

public <V> V read(Callable<V> callable)

### read

public void read(Runnable runnable)

### write

public <V> V write(Callable<V> callable)

### write

public void write(Runnable runnable)

### call

public static <V> V call(Callable<V> callable, Lock lock, long timeoutMillis)

### run

public static void run(Runnable runnable, Lock lock, long timeoutMillis)