com.atlassian.confluence.concurrent
Class LockOperation
java.lang.Object
com.atlassian.confluence.concurrent.LockOperation
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- LockOperationWithoutResult
Deprecated. Since 5.6. Use ClusterLockService in conjunction with
ManagedLock.withLock(java.util.concurrent.Callable).
public abstract class LockOperation
- extends Object
- implements Runnable
Perform a unit of work while managing the lock lifecycle automatically.
- Lock is acquired
- withLock called
- Lock is released
- See Also:
Lock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockOperation
protected LockOperation(Lock lock)
- Deprecated.
doOperation
public Object doOperation()
- Deprecated.
run
public final void run()
- Deprecated.
- Specified by:
run in interface Runnable
withLock
protected abstract Object withLock()
- Deprecated.
Copyright © 2003–2015 Atlassian. All rights reserved.