Interface KeyAwareLockPromise
-
- All Superinterfaces:
LockPromise
public interface KeyAwareLockPromise extends LockPromise
An extension ofLockPromise
that contains a key associated to the lock.- Since:
- 8.0
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static KeyAwareLockPromise
NO_OP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(KeyAwareLockListener listener)
It adds the listener to thisLockPromise
.-
Methods inherited from interface org.infinispan.util.concurrent.locks.LockPromise
addListener, isAvailable, lock, toInvocationStage
-
-
-
-
Field Detail
-
NO_OP
static final KeyAwareLockPromise NO_OP
-
-
Method Detail
-
addListener
void addListener(KeyAwareLockListener listener)
It adds the listener to thisLockPromise
.The listener is invoked when the
LockPromise.isAvailable()
returns true. For more info, checkKeyAwareLockListener
.- Parameters:
listener
- the listener to add.
-
-