public static class LockHandle.CancellableHandle extends Object implements LockHandle
LockHandle.CancellableHandle| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Attempts to cancels a lock request
|
Mono<Void> |
mono()
Returns a
Mono that emits success only after acquiring the lock |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitempty, frompublic boolean cancel()
LockHandlecancel in interface LockHandletrue if successfully cancelledfalse if you have acquired the lock, probably just raced with the cancel requestpublic Mono<Void> mono()
LockHandleMono that emits success only after acquiring the lockmono in interface LockHandleMono that emits success only after acquiring the lock