Package | Description |
---|---|
org.apache.commons.transaction.locking |
Modifier and Type | Class and Description |
---|---|
class |
ReadWriteLock
Convenience implementation of a read/write lock based on
GenericLock . |
class |
ReadWriteUpgradeLock
Convenience implementation of a read/write lock with an option for upgrade
based on
ReadWriteUpgradeLock .Reads are shared which means there can be any number of concurrent read accesses allowed by this lock. |
Modifier and Type | Method and Description |
---|---|
protected GenericLock |
GenericLockManager.createLock(Object resourceId) |
protected GenericLock |
ReadWriteUpgradeLockManager.createLock(Object resourceId) |
protected GenericLock |
ReadWriteLockManager.createLock(Object resourceId) |
Modifier and Type | Method and Description |
---|---|
protected void |
GenericLockManager.addOwner(Object ownerId,
GenericLock lock) |
protected void |
GenericLockManager.doLock(GenericLock lock,
Object ownerId,
Object resourceId,
int targetLockLevel,
int compatibility,
boolean preferred,
long timeoutMSecs) |
protected void |
GenericLockManager.removeOwner(Object ownerId,
GenericLock lock) |
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.