public interface ExtendedLockPromise extends LockPromise
LockPromise
interface that allows a better control over it.Modifier and Type | Method and Description |
---|---|
void |
cancel(LockState cause)
It cancels the
LockPromise if possible. |
Object |
getOwner() |
Object |
getRequestor() |
InvocationStage |
toInvocationStage(Supplier<TimeoutException> timeoutSupplier) |
addListener, isAvailable, lock, toInvocationStage
void cancel(LockState cause)
LockPromise
if possible.cause
- the cancellation cause. The possible values are LockState.DEADLOCKED
and LockState.TIMED_OUT
.IllegalArgumentException
- if the argument cause
is not valid.Object getRequestor()
LockPromise
.Object getOwner()
InvocationStage toInvocationStage(Supplier<TimeoutException> timeoutSupplier)
InvocationStage
for this lock.Copyright © 2021 JBoss by Red Hat. All rights reserved.