Interface EventResponseCallback


  • public interface EventResponseCallback
    For Event API calls that support long-polling, this callback is used to handle the result on success or failure for an async HTTP call.
    • Method Summary

      Modifier and Type Method Description
      void onComplete​(EventResponse EventResponse)
      Callback for a successful EventResponse.
      void onFailure​(java.lang.Throwable throwable)
      Callback for an unsuccessful request.
    • Method Detail

      • onComplete

        void onComplete​(EventResponse EventResponse)
        Callback for a successful EventResponse.
        Parameters:
        EventResponse - The Consul event response.
      • onFailure

        void onFailure​(java.lang.Throwable throwable)
        Callback for an unsuccessful request.
        Parameters:
        throwable - The exception thrown.