public interface LockManager
MultiLevelLock.MultiLevelLock| Modifier and Type | Method and Description |
|---|---|
MultiLevelLock |
atomicGetOrCreateLock(Object resourceId)
Either gets an existing lock on the specified resource or creates one if none exists.
|
MultiLevelLock |
getLock(Object resourceId)
Gets an existing lock on the specified resource.
|
void |
removeLock(MultiLevelLock lock)
Removes the specified lock from the associated resource.
|
MultiLevelLock atomicGetOrCreateLock(Object resourceId)
resourceId - the resource to get or create the lock onMultiLevelLock getLock(Object resourceId)
null.resourceId - the resource to get the lock forvoid removeLock(MultiLevelLock lock)
lock - the lock to be removedCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.