Interface CircuitBreakerBundle.ExceptionBuilder<T extends io.dropwizard.Configuration>

    • Method Detail

      • recordExceptions

        CircuitBreakerBundle.ExceptionBuilder<T> recordExceptions​(java.lang.Class<? extends java.lang.Throwable>... errorClasses)
        Configures a list of error classes that are recorded as a failure and thus increase the failure rate. Any exception matching or inheriting from one of the list should count as a failure, unless ignored
        Parameters:
        errorClasses - the error classes that are recorded
        Returns:
        the same builder instance
      • ignoreExceptions

        CircuitBreakerBundle.ExceptionBuilder<T> ignoreExceptions​(java.lang.Class<? extends java.lang.Throwable>... errorClasses)
        Configures a list of error classes that are ignored as a failure and thus do not increase the failure rate. Any exception matching or inheriting from one of the list will not count as a failure, even if marked via record.
        Parameters:
        errorClasses - the error classes that are ignored
        Returns:
        the same builder instance