Class LockOperation

  • All Implemented Interfaces:
    Runnable

    @Deprecated
    public abstract class LockOperation
    extends Object
    implements Runnable
    Deprecated.
    Since 5.6. Use ClusterLockService in conjunction with ManagedLock.withLock(java.util.concurrent.Callable).
    Perform a unit of work while managing the lock lifecycle automatically.
    1. Lock is acquired
    2. withLock called
    3. Lock is released
    See Also:
    Lock
    • Constructor Detail

      • LockOperation

        protected LockOperation​(Lock lock)
        Deprecated.
    • Method Detail

      • doOperation

        public Object doOperation()
        Deprecated.
      • run

        public final void run()
        Deprecated.
        Specified by:
        run in interface Runnable
      • withLock

        protected abstract Object withLock()
        Deprecated.