Interface LockCallback
-
public interface LockCallback
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static 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 Detail
-
lockAcquired
void lockAcquired(FencedLock lock)
This method is called when the lock in question is acquired by theFencedLockManageron 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 theFencedLockManagerinstance 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)
-
-