public class SharedBlockingCallback.Blocker extends Object implements Callback, Closeable
Callback.Completable, Callback.NestedInvocable.InvocationType__nonBlocking| Modifier | Constructor and Description |
|---|---|
protected |
Blocker() |
| Modifier and Type | Method and Description |
|---|---|
void |
block()
Block until the Callback has succeeded or failed and after the return leave in the state to allow reuse.
|
void |
close()
Check the Callback has succeeded or failed and after the return leave in the state to allow reuse.
|
void |
failed(Throwable cause)
Callback invoked when the operation fails.
|
Invocable.InvocationType |
getInvocationType() |
void |
succeeded()
Callback invoked when the operation completes.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInvocationType, invokeNonBlocking, isNonBlockingInvocationpublic Invocable.InvocationType getInvocationType()
getInvocationType in interface Invocablepublic void succeeded()
CallbackCallback invoked when the operation completes.
succeeded in interface CallbackCallback.failed(Throwable)public void failed(Throwable cause)
CallbackCallback invoked when the operation fails.
public void block()
throws IOException
IOException - if exception was caught during blocking, or callback was cancelledpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 1995–2018 Webtide. All rights reserved.