Interface ExtendedLockPromise
- 
- All Superinterfaces:
- LockPromise
 
 public interface ExtendedLockPromise extends LockPromise An extendedLockPromiseinterface that allows a better control over it.- Since:
- 8.0
- Author:
- Pedro Ruivo
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel(LockState cause)It cancels theLockPromiseif possible.ObjectgetOwner()ObjectgetRequestor()InvocationStagetoInvocationStage(Supplier<TimeoutException> timeoutSupplier)- 
Methods inherited from interface org.infinispan.util.concurrent.locks.LockPromiseaddListener, isAvailable, lock, toInvocationStage
 
- 
 
- 
- 
- 
Method Detail- 
cancelvoid cancel(LockState cause) It cancels theLockPromiseif possible.- Parameters:
- cause- the cancellation cause. The possible values are- LockState.DEADLOCKEDand- LockState.TIMED_OUT.
- Throws:
- IllegalArgumentException- if the argument- causeis not valid.
 
 - 
getRequestorObject getRequestor() - Returns:
- the lock owner associated to this LockPromise.
 
 - 
getOwnerObject getOwner() - Returns:
- the current lock owner.
 
 - 
toInvocationStageInvocationStage toInvocationStage(Supplier<TimeoutException> timeoutSupplier) - Returns:
- an InvocationStagefor this lock.
 
 
- 
 
-