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, lock, toInvocationStage
static 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 © 2021 JBoss by Red Hat. All rights reserved.