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