API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent.locks. ReentrantReadWriteLock.WriteLock View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      ReentrantReadWriteLock.WriteLock
Implements
 Lock
 Serializable
Subclasses
Description
publicstatic class ReentrantReadWriteLock.WriteLock
The lock returned by method ReentrantReadWriteLock.writeLock().
See also:   
Constructors
protected ReentrantReadWriteLock.WriteLock (ReentrantReadWriteLock lock)
  Constructor for use by subclasses
Methods
Hide/Show inherited methods
public int getHoldCount ()
  Queries the number of holds on this write lock by the current thread.
public boolean isHeldByCurrentThread ()
  Queries if this write lock is held by the current thread.
public void lock () [Specified in Lock]
  Acquires the write lock.
public void lockInterruptibly () throws InterruptedException [Specified in Lock]
  Acquires the write lock unless the current thread is interrupted.
public Condition newCondition () [Specified in Lock]
  Returns a Condition instance for use with this Lock instance.
public String toString ()
  Returns a string identifying this lock, as well as its lock state.
public boolean tryLock () [Specified in Lock]
  Acquires the write lock only if it 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 write lock if it 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