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() |
addListener, isAvailable, lock
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()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.