public abstract class AbstractLockContainer<L extends Lock> extends Object implements LockContainer<L>
| Constructor and Description | 
|---|
| AbstractLockContainer() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | safeRelease(L toRelease,
           Object lockOwner)Releases a lock and swallows any IllegalMonitorStateExceptions - so it is safe to call this method even if the
 lock is not locked, or not locked by the current thread. | 
| protected abstract boolean | tryLock(L lock,
       long timeout,
       TimeUnit unit,
       Object lockOwner) | 
| protected abstract void | unlock(L toRelease,
      Object ctx) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireLock, getLock, getLockId, getNumLocksHeld, isLocked, ownsLock, releaseLock, sizeprotected void safeRelease(L toRelease, Object lockOwner)
toRelease - lock to releaseprotected abstract boolean tryLock(L lock, long timeout, TimeUnit unit, Object lockOwner) throws InterruptedException
InterruptedExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.