
public class RWLock extends ReentrantReadWriteLock
ReentrantReadWriteLock.ReadLock, ReentrantReadWriteLock.WriteLock| Constructor and Description |
|---|
RWLock(long timeoutMillis) |
RWLock(long timeoutMillis,
boolean fair) |
| Modifier and Type | Method and Description |
|---|---|
static <V> V |
call(Callable<V> callable,
Lock lock,
long timeoutMillis) |
<V> V |
read(Callable<V> callable) |
void |
read(Runnable runnable) |
static void |
run(Runnable runnable,
Lock lock,
long timeoutMillis) |
<V> V |
write(Callable<V> callable) |
void |
write(Runnable runnable) |
getOwner, getQueuedReaderThreads, getQueuedThreads, getQueuedWriterThreads, getQueueLength, getReadHoldCount, getReadLockCount, getWaitingThreads, getWaitQueueLength, getWriteHoldCount, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isWriteLocked, isWriteLockedByCurrentThread, readLock, toString, writeLockpublic RWLock(long timeoutMillis)
public RWLock(long timeoutMillis,
boolean fair)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.