TrueZIP 6.8.3

de.schlichtherle.io
Class ReentrantReadWriteLock.ReadLock

java.lang.Object
  extended by java.lang.ThreadLocal
      extended by de.schlichtherle.util.ThreadLocalCounter
          extended by de.schlichtherle.io.ReentrantReadWriteLock.AbstractLock
              extended by de.schlichtherle.io.ReentrantReadWriteLock.ReadLock
All Implemented Interfaces:
ReentrantLock
Enclosing class:
ReentrantReadWriteLock

private class ReentrantReadWriteLock.ReadLock
extends ReentrantReadWriteLock.AbstractLock


Constructor Summary
private ReentrantReadWriteLock.ReadLock()
           
 
Method Summary
 void lock()
          Acquires this lock by the current thread, eventually blocking.
 void lockInterruptibly()
           
 boolean tryLock()
           
 void unlock()
          Releases this lock.
 
Methods inherited from class de.schlichtherle.io.ReentrantReadWriteLock.AbstractLock
isLocked, lockCount
 
Methods inherited from class de.schlichtherle.util.ThreadLocalCounter
decrement, getCounter, increment, initialValue, setCounter
 
Methods inherited from class java.lang.ThreadLocal
get, remove, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReentrantReadWriteLock.ReadLock

private ReentrantReadWriteLock.ReadLock()
Method Detail

lock

public void lock()
Description copied from interface: ReentrantLock
Acquires this lock by the current thread, eventually blocking.

Specified by:
lock in interface ReentrantLock
Overrides:
lock in class ReentrantReadWriteLock.AbstractLock

lockInterruptibly

public void lockInterruptibly()
                       throws InterruptedException
Throws:
InterruptedException

tryLock

public boolean tryLock()

unlock

public void unlock()
Description copied from interface: ReentrantLock
Releases this lock.

Specified by:
unlock in interface ReentrantLock
Overrides:
unlock in class ReentrantReadWriteLock.AbstractLock

TrueZIP 6.8.3

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.