Interface KeyAwareLockListener
-
public interface KeyAwareLockListenerA listener forKeyAwareLockPromise.This event contains the key that the lock owner is try to acquire.
- Since:
- 8.0
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEvent(java.lang.Object key, LockState state)Invoked when the lock is available.
-
-
-
Method Detail
-
onEvent
void onEvent(java.lang.Object key, LockState state)Invoked when the lock is available.- Parameters:
key- the key associated to this lock.state- the lock state. Possible values areLockState.ACQUIRED,LockState.TIMED_OUTorLockState.DEADLOCKED.
-
-