com.atlassian.confluence.concurrent
Class LockOperation
java.lang.Object
com.atlassian.confluence.concurrent.LockOperation
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- LockOperationWithoutResult
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)
doOperation
public Object doOperation()
run
public final void run()
- Specified by:
run
in interface Runnable
withLock
protected abstract Object withLock()