API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent.locks. ReentrantReadWriteLock.ReadLock View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      ReentrantReadWriteLock.ReadLock
Implements
 Lock
 Serializable
Subclasses
Description
publicstatic class ReentrantReadWriteLock.ReadLock
The lock returned by method ReentrantReadWriteLock.readLock().
See also:   
Constructors
protected ReentrantReadWriteLock.ReadLock (ReentrantReadWriteLock lock)
  Constructor for use by subclasses
Methods
Hide/Show inherited methods
public void lock () [Specified in Lock]
  Acquires the read lock.
public void lockInterruptibly () throws InterruptedException [Specified in Lock]
  Acquires the read lock unless the current thread is interrupted.
public Condition newCondition () [Specified in Lock]
  Throws UnsupportedOperationException because ReadLocks do not support conditions.
public String toString ()
  Returns a string identifying this lock, as well as its lock state.
public boolean tryLock () [Specified in Lock]
  Acquires the read lock only if the write lock is not held by another thread at the time of invocation.
public boolean tryLock (long timeout, TimeUnit unit) throws InterruptedException [Specified in Lock]
  Acquires the read lock if the write lock is not held by another thread within the given waiting time and the current thread has not been interrupted.
public void unlock () [Specified in Lock]
  Attempts to release this lock.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar