Interface ExtendedLockPromise
- All Superinterfaces:
LockPromise
An extended
LockPromise
interface that allows a better control over it.- Since:
- 8.0
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionvoid
It cancels theLockPromise
if possible.getOwner()
toInvocationStage
(Supplier<TimeoutException> timeoutSupplier) Methods inherited from interface org.infinispan.util.concurrent.locks.LockPromise
addListener, isAvailable, lock, toInvocationStage
-
Method Details
-
cancel
It cancels theLockPromise
if possible.- Parameters:
cause
- the cancellation cause. The possible values areLockState.DEADLOCKED
andLockState.TIMED_OUT
.- Throws:
IllegalArgumentException
- if the argumentcause
is not valid.
-
getRequestor
Object getRequestor()- Returns:
- the lock owner associated to this
LockPromise
.
-
getOwner
Object getOwner()- Returns:
- the current lock owner.
-
toInvocationStage
- Returns:
- an
InvocationStage
for this lock.
-