Package org.apache.avro.ipc
Class Requestor.TransceiverCallback<T>
java.lang.Object
org.apache.avro.ipc.Requestor.TransceiverCallback<T>
- All Implemented Interfaces:
Callback<List<ByteBuffer>>
- Enclosing class:
Requestor
protected class Requestor.TransceiverCallback<T>
extends Object
implements Callback<List<ByteBuffer>>
Handles callbacks from transceiver invocations.
-
Constructor Summary
ConstructorsConstructorDescriptionTransceiverCallback(org.apache.avro.ipc.Requestor.Request request, Callback<T> callback) Creates a TransceiverCallback. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(Throwable error) Receives an error.voidhandleResult(List<ByteBuffer> responseBytes) Receives a callback result.
-
Constructor Details
-
TransceiverCallback
Creates a TransceiverCallback.- Parameters:
request- the request to set.callback- the callback to set.
-
-
Method Details
-
handleResult
Description copied from interface:CallbackReceives a callback result.- Specified by:
handleResultin interfaceCallback<T>- Parameters:
responseBytes- the result returned in the callback.
-
handleError
Description copied from interface:CallbackReceives an error.- Specified by:
handleErrorin interfaceCallback<T>- Parameters:
error- the error returned in the callback.
-