info.aduna.concurrent.locks
Class AbstractReadWriteLockManager.ReadDebugLock
java.lang.Object
info.aduna.concurrent.locks.AbstractReadWriteLockManager.ReadDebugLock
- All Implemented Interfaces:
- Lock
- Enclosing class:
- AbstractReadWriteLockManager
protected class AbstractReadWriteLockManager.ReadDebugLock
- extends java.lang.Object
Method Summary |
protected void |
finalize()
|
protected org.slf4j.Logger |
getLogger()
|
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractReadWriteLockManager.ReadDebugLock
public AbstractReadWriteLockManager.ReadDebugLock(org.slf4j.Logger logger,
boolean enableTrace)
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.
getLogger
protected org.slf4j.Logger getLogger()
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable
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.