public interface KeyAwareLockListener
KeyAwareLockPromise
.
This event contains the key that the lock owner is try to acquire.
Modifier and Type | Method and Description |
---|---|
void |
onEvent(Object key,
LockState state)
Invoked when the lock is available.
|
void onEvent(Object key, LockState state)
key
- the key associated to this lock.state
- the lock state. Possible values are LockState.ACQUIRED
, LockState.TIMED_OUT
or
LockState.DEADLOCKED
.Copyright © 2021 JBoss by Red Hat. All rights reserved.