public static class InvocationBuilder.AsyncResultCallback<A_RES_T> extends ResultCallbackTemplate<InvocationBuilder.AsyncResultCallback<A_RES_T>,A_RES_T>
ResultCallback with the single result event expected.| Constructor and Description |
|---|
AsyncResultCallback() |
| Modifier and Type | Method and Description |
|---|---|
A_RES_T |
awaitResult()
Blocks until
ResultCallback.onNext(Object) was called for the first time |
void |
close() |
void |
onNext(A_RES_T object)
Called when an async result event occurs
|
awaitCompletion, awaitCompletion, awaitStarted, awaitStarted, getFirstError, onComplete, onError, onStartpublic void onNext(A_RES_T object)
ResultCallbackpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ResultCallbackTemplate<InvocationBuilder.AsyncResultCallback<A_RES_T>,A_RES_T>IOExceptionpublic A_RES_T awaitResult()
ResultCallback.onNext(Object) was called for the first timeCopyright © 2017. All Rights Reserved.