Interface FeedClient.CircuitBreaker

  • Enclosing interface:
    FeedClient

    public static interface FeedClient.CircuitBreaker
    Allows slowing down or halting completely operations against the configured endpoint on high failure rates.
    • Method Detail

      • success

        default void success()
        Called by the client whenever a successful response is obtained.
      • failure

        default void failure​(HttpResponse response)
        Called by the client whenever an error HTTP response is received.
      • failure

        default void failure​(Throwable cause)
        Called by the client whenever an exception occurs trying to obtain a HTTP response.