ReentrantReadWriteLock.ReadLock


ReentrantReadWriteLock.ReadLock java.util.concurrent.locks

Java 5.0 serializable

A Lock implementation for reader threads. Any number of threads can acquire the lock as long as the corresponding WriteLock is not held. newCondition( ) throws UnsupportedOperationException .

 public static class  ReentrantReadWriteLock.ReadLock  implements Lock, Serializable {  // Protected Constructors  protected  ReadLock  (ReentrantReadWriteLock  lock  );  // Methods Implementing Lock  public void  lock  ( );        public void  lockInterruptibly  ( ) throws InterruptedException;        public Condition  newCondition  ( );        public boolean  tryLock  ( );        public boolean  tryLock  (long  timeout  , java.util.concurrent.TimeUnit  unit  )         throws InterruptedException;        public void  unlock  ( );  // Public Methods Overriding Object  public String  toString  ( );   } 

Returned By

ReentrantReadWriteLock.readLock( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net