Interface FeedClient.CircuitBreaker

  • All Known Implementing Classes:
    GracePeriodCircuitBreaker
    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​(ai.vespa.feed.client.HttpResponse response)
        Called by the client whenever an error HTTP response is received.
      • failure

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