Class GracePeriodCircuitBreaker

    • Constructor Summary

      Constructors 
      Constructor Description
      GracePeriodCircuitBreaker​(java.time.Duration grace, java.time.Duration doom)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void failure​(ai.vespa.feed.client.HttpResponse response)
      Called by the client whenever an error HTTP response is received.
      void failure​(java.lang.Throwable cause)
      Called by the client whenever an exception occurs trying to obtain a HTTP response.
      FeedClient.CircuitBreaker.State state()
      The current state of the circuit breaker.
      void success()
      Called by the client whenever a successful response is obtained.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait