Interface CircuitBreakerFailurePredicate

All Superinterfaces:
Predicate<Throwable>

public interface CircuitBreakerFailurePredicate extends Predicate<Throwable>
Configures behavior of CircuitBreaker.releaseOnError(Throwable) on whenever exception should count as failre or not
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    test(Throwable throwable)
     

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Method Details

    • name

      @Nonnull String name()
      Returns:
      name of the predicate
    • test

      boolean test(@Nonnull Throwable throwable)
      Specified by:
      test in interface Predicate<Throwable>
      Parameters:
      throwable - to test
      Returns:
      when True than throwable is registered as failure