Package | Description |
---|---|
org.apache.commons.transaction.locking |
Modifier and Type | Interface and Description |
---|---|
interface |
MultiLevelLock2
Extended multi level lock.
|
Modifier and Type | Class and Description |
---|---|
class |
GenericLock
A generic implementain of a simple multi level lock.
|
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 |
---|---|
MultiLevelLock |
LockManager.atomicGetOrCreateLock(Object resourceId)
Either gets an existing lock on the specified resource or creates one if none exists.
|
MultiLevelLock |
GenericLockManager.atomicGetOrCreateLock(Object resourceId) |
MultiLevelLock |
LockManager.getLock(Object resourceId)
Gets an existing lock on the specified resource.
|
MultiLevelLock |
GenericLockManager.getLock(Object resourceId) |
MultiLevelLock |
LockManager2.getLock(Object resourceId)
Gets an existing lock on the specified resource.
|
Modifier and Type | Method and Description |
---|---|
void |
LockManager.removeLock(MultiLevelLock lock)
Removes the specified lock from the associated resource.
|
void |
GenericLockManager.removeLock(MultiLevelLock lock) |
void |
LockManager2.removeLock(MultiLevelLock lock)
Removes the specified lock from the associated resource.
|
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.