TError - type of exception it may raisepublic class LockPoint<TError extends Exception> extends AbstractLock<TError>
cancel, error, listeners| Constructor and Description |
|---|
LockPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
block(long timeout)
Pause the current thread to wait for this asynchronous unit to be unblocked.
|
boolean |
blockPauseCondition()
Return true if blockPause should still block.
|
boolean |
isDone()
Return true if unblocked (success or cancelled).
|
void |
lock()
Request the lock.
|
void |
onDone(Runnable r)
Call listener when unblocked (whatever the result is successful, has error or is cancelled).
|
void |
unlock()
Release the lock.
|
cancel, error, getAllListeners, getCancelEvent, getError, hasError, isCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitblockException, blockPause, blockThrow, forwardIfNotSuccessful, isSuccessful, logListenerError, onCancel, onDone, onDone, onDone, onDone, onDone, onDone, onError, onErrorOrCancel, onSuccess, thenDoOrStart, thenDoOrStart, thenDoOrStart, thenStart, thenStart, thenStart, thenStart, thenStart, thenStart, toAsyncSupplierpublic void lock()
public void unlock()
unlock in class AbstractLock<TError extends Exception>public boolean isDone()
IAsyncpublic boolean blockPauseCondition()
IAsyncpublic void onDone(Runnable r)
IAsyncpublic void block(long timeout)
IAsyncCopyright © 2019. All rights reserved.