public interface KeyAwareLockPromise extends LockPromise
LockPromise that contains a key associated to the lock.| Modifier and Type | Field and Description |
|---|---|
static KeyAwareLockPromise |
NO_OP |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(KeyAwareLockListener listener)
It adds the listener to this
LockPromise. |
addListener, isAvailable, lockstatic final KeyAwareLockPromise NO_OP
void addListener(KeyAwareLockListener listener)
LockPromise.
The listener is invoked when the LockPromise.isAvailable() returns true. For more info, check KeyAwareLockListener.
listener - the listener to add.Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.