Class GracePeriodCircuitBreaker

    • Constructor Detail

      • GracePeriodCircuitBreaker

        public GracePeriodCircuitBreaker​(Duration grace)
        Creates a new circuit breaker with the given grace periods.
        Parameters:
        grace - the period of consecutive failures before state changes to half-open.
      • GracePeriodCircuitBreaker

        public GracePeriodCircuitBreaker​(Duration grace,
                                         Duration doom)
        Creates a new circuit breaker with the given grace periods.
        Parameters:
        grace - the period of consecutive failures before state changes to half-open.
        doom - the period of consecutive failures before shutting down.