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, onStart
public void onNext(A_RES_T object)
ResultCallback
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class ResultCallbackTemplate<InvocationBuilder.AsyncResultCallback<A_RES_T>,A_RES_T>
IOException
public A_RES_T awaitResult()
ResultCallback.onNext(Object)
was called for the first timeCopyright © 2016. All Rights Reserved.