| java.lang.Object org.jboss.ejb.plugins.lock.NonReentrantLock
NonReentrantLock | public class NonReentrantLock implements Resource(Code) | | Implementents a non reentrant lock with deadlock detection
It will throw a ReentranceException if the same thread tries to acquire twice
or the same transaction tries to acquire twice
author: Bill Burke author: Alexey Loubyansky version: $Revision: 57209 $ |
Inner Class :public static class ReentranceException extends Exception | |
held | protected volatile int held(Code) | | |
holdingTx | protected Transaction holdingTx(Code) | | |
acquireNonReentrant | protected boolean acquireNonReentrant(long waitTime, Transaction miTx) throws ApplicationDeadlockException, InterruptedException, ReentranceException(Code) | | |
acquireReentrant | protected boolean acquireReentrant(long waitTime, Transaction miTx) throws ApplicationDeadlockException, InterruptedException, ReentranceException(Code) | | |
attempt | public boolean attempt(long waitTime, Transaction miTx, boolean nonReentrant) throws ApplicationDeadlockException, InterruptedException, ReentranceException(Code) | | |
release | public void release(boolean nonReentrant)(Code) | | |
|
|