Interface LockCallback
public interface LockCallback
-
Method Summary
Modifier and TypeMethodDescriptionstatic LockCallbackBuilderbuilder()voidlockAcquired(FencedLock lock) This method is called when the lock in question is acquired by theFencedLockManageron this JVM instancestatic LockCallbacklockCallback(Consumer<FencedLock> onLockAcquired, Consumer<FencedLock> onLockReleased) voidlockReleased(FencedLock lock) This method is called when the lock in question was owned by theFencedLockManagerinstance belonging to this JVM instance and the lock has been released
-
Method Details
-
lockAcquired
This method is called when the lock in question is acquired by theFencedLockManageron this JVM instance- Parameters:
lock- the lock that was acquired
-
lockReleased
This method is called when the lock in question was owned by theFencedLockManagerinstance belonging to this JVM instance and the lock has been released- Parameters:
lock- the lock that was released
-
builder
-
lockCallback
static LockCallback lockCallback(Consumer<FencedLock> onLockAcquired, Consumer<FencedLock> onLockReleased)
-