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 Details

    • onComplete

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

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