Example usage for Java org.apache.commons.transaction.locking GenericLock fields, constructors, methods, implement or subclass
The text is from its open source code.
GenericLock(Object resourceId, int maxLockLevel, LoggerFacade logger) Creates a new lock. |
boolean | acquire(Object ownerId, int targetLockLevel, boolean wait, boolean reentrant, long timeoutMSecs) |
boolean | acquire(Object ownerId, int targetLockLevel, boolean wait, int compatibility, long timeoutMSecs) |
int | getLockLevel(Object ownerId) |
Object | getOwner() |
Object | getResourceId() Gets the resource assotiated to this lock. |
boolean | release(Object ownerId) |