Interface KeyAwareLockListener
public interface KeyAwareLockListener
A listener for
KeyAwareLockPromise.
This event contains the key that the lock owner is try to acquire.
- Since:
- 8.0
- Author:
- Pedro Ruivo
-
Method Summary
-
Method Details
-
onEvent
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.
-