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
ConstructorDescriptionTransceiverCallback
(org.apache.avro.ipc.Requestor.Request request, Callback<T> callback) Creates a TransceiverCallback. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleError
(Throwable error) Receives an error.void
handleResult
(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:Callback
Receives a callback result.- Specified by:
handleResult
in interfaceCallback<T>
- Parameters:
responseBytes
- the result returned in the callback.
-
handleError
Description copied from interface:Callback
Receives an error.- Specified by:
handleError
in interfaceCallback<T>
- Parameters:
error
- the error returned in the callback.
-