Interface AsyncCallback<T>

All Known Implementing Classes:
ReaderEventTranslator

public interface AsyncCallback<T>
The primary interface a caller must implement to receive a response from a remote procedure call.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when an asynchronous call fails to complete normally.
    void
    onSuccess(T result)
    Called when an asynchronous call completes successfully.
  • Method Details

    • onFailure

      void onFailure(Throwable caught)
      Called when an asynchronous call fails to complete normally.
      Parameters:
      caught - failure encountered while executing a remote procedure call
    • onSuccess

      void onSuccess(T result)
      Called when an asynchronous call completes successfully.
      Parameters:
      result - the return value of the remote produced call