Class ExecutorCircuitBreaker

    • Constructor Detail

      • ExecutorCircuitBreaker

        public ExecutorCircuitBreaker​(java.lang.Integer circuitCheckIntervalInMillis)
    • Method Detail

      • run

        public <T> T run​(java.util.concurrent.Callable<T> callable)
        Description copied from interface: CircuitBreaker
        Runs callable and breaks it when circuit breaker is closed
        Specified by:
        run in interface CircuitBreaker
        Returns:
      • isPercentageValueValid

        protected boolean isPercentageValueValid​(java.lang.Integer value)