info.aduna.concurrent.locks
Class AbstractReadWriteLockManager.ReadLock

java.lang.Object
  extended by info.aduna.concurrent.locks.AbstractReadWriteLockManager.ReadLock
All Implemented Interfaces:
Lock
Enclosing class:
AbstractReadWriteLockManager

protected class AbstractReadWriteLockManager.ReadLock
extends java.lang.Object


Constructor Summary
protected AbstractReadWriteLockManager.ReadLock()
           
 
Method Summary
 boolean isActive()
          Checks whether the lock is still active.
 void release()
          Release the lock, making it inactive.
protected  void releaseLock()
          This method is called when someone calls the release() method on an active lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractReadWriteLockManager.ReadLock

protected AbstractReadWriteLockManager.ReadLock()
Method Detail

releaseLock

protected void releaseLock()
This method is called when someone calls the release() method on an active lock. This method is called only once on an object as the release() method flags the lock as inactive after the first call to it.


isActive

public boolean isActive()
Description copied from interface: Lock
Checks whether the lock is still active.

Specified by:
isActive in interface Lock

release

public void release()
Description copied from interface: Lock
Release the lock, making it inactive.

Specified by:
release in interface Lock


Copyright © 2010 Aduna. All Rights Reserved.