public interface LockCallback
  • Method Details

    • lockAcquired

      void lockAcquired(FencedLock lock)
      This method is called when the lock in question is acquired by the FencedLockManager on this JVM instance
      Parameters:
      lock - the lock that was acquired
    • lockReleased

      void lockReleased(FencedLock lock)
      This method is called when the lock in question was owned by the FencedLockManager instance belonging to this JVM instance and the lock has been released
      Parameters:
      lock - the lock that was released
    • builder

      static LockCallbackBuilder builder()
    • lockCallback

      static LockCallback lockCallback(Consumer<FencedLock> onLockAcquired, Consumer<FencedLock> onLockReleased)