Interface PublishCallback


public interface PublishCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the publish reply was successfully returned by remote server.
    void
    Called when the request could not be executed due to cancellation, a connectivity problem or timeout.
  • Method Details

    • onFailure

      void onFailure(Throwable e)
      Called when the request could not be executed due to cancellation, a connectivity problem or timeout. Because networks can fail during an exchange, it is possible that the remote server accepted the request before the failure.
    • onDone

      void onDone(PublishResult reply)
      Called when the publish reply was successfully returned by remote server. Note that it still can contain Error.