Interface Callback


public interface Callback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the client request has completed.
    void
    onFailure(Throwable exception)
    Called when the client request has thrown an exception before completion.
  • Method Details

    • onCompletion

      void onCompletion(@Nullable MetadataWriteResponse response)
      Called when the client request has completed. Completion does not imply success. Inspect the response object to understand if this was a successfully processed request or not.
      Parameters:
      response -
    • onFailure

      void onFailure(Throwable exception)
      Called when the client request has thrown an exception before completion.
      Parameters:
      exception -