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 Details

    • TransceiverCallback

      public TransceiverCallback(org.apache.avro.ipc.Requestor.Request request, Callback<T> callback)
      Creates a TransceiverCallback.
      Parameters:
      request - the request to set.
      callback - the callback to set.
  • Method Details

    • handleResult

      public void handleResult(List<ByteBuffer> responseBytes)
      Description copied from interface: Callback
      Receives a callback result.
      Specified by:
      handleResult in interface Callback<T>
      Parameters:
      responseBytes - the result returned in the callback.
    • handleError

      public void handleError(Throwable error)
      Description copied from interface: Callback
      Receives an error.
      Specified by:
      handleError in interface Callback<T>
      Parameters:
      error - the error returned in the callback.