Uses of Class
org.apache.camel.main.Resilience4jConfigurationProperties
-
Uses of Resilience4jConfigurationProperties in org.apache.camel.main
Methods in org.apache.camel.main that return Resilience4jConfigurationPropertiesModifier and TypeMethodDescriptionMainConfigurationProperties.resilience4j()To configure Circuit Breaker EIP with Resilience4jResilience4jConfigurationProperties.withAutomaticTransitionFromOpenToHalfOpenEnabled(Boolean automaticTransitionFromOpenToHalfOpenEnabled) Resilience4jConfigurationProperties.withBulkheadEnabled(Boolean bulkheadEnabled) Whether bulkhead is enabled or not on the circuit breaker.Resilience4jConfigurationProperties.withBulkheadMaxConcurrentCalls(Integer bulkheadMaxConcurrentCalls) Configures the max amount of concurrent calls the bulkhead will support.Resilience4jConfigurationProperties.withBulkheadMaxWaitDuration(Integer bulkheadMaxWaitDuration) Configures a maximum amount of time which the calling thread will wait to enter the bulkhead.Resilience4jConfigurationProperties.withCircuitBreakerRef(String circuitBreakerRef) Refers to an existing io.github.resilience4j.circuitbreaker.CircuitBreaker instance to lookup and use from the registry.Resilience4jConfigurationProperties.withConfigRef(String configRef) Refers to an existing io.github.resilience4j.circuitbreaker.CircuitBreakerConfig instance to lookup and use from the registry.Resilience4jConfigurationProperties.withFailureRateThreshold(Float failureRateThreshold) Configures the failure rate threshold in percentage.Resilience4jConfigurationProperties.withMinimumNumberOfCalls(Integer minimumNumberOfCalls) Configures configures the minimum number of calls which are required (per sliding window period) before the CircuitBreaker can calculate the error rate.Resilience4jConfigurationProperties.withPermittedNumberOfCallsInHalfOpenState(Integer permittedNumberOfCallsInHalfOpenState) Configures the number of permitted calls when the CircuitBreaker is half open.Resilience4jConfigurationProperties.withSlidingWindowSize(Integer slidingWindowSize) Configures the size of the sliding window which is used to record the outcome of calls when the CircuitBreaker is closed.Resilience4jConfigurationProperties.withSlidingWindowType(String slidingWindowType) Configures the type of the sliding window which is used to record the outcome of calls when the CircuitBreaker is closed.Resilience4jConfigurationProperties.withSlowCallDurationThreshold(Integer slowCallDurationThreshold) Configures the duration threshold (seconds) above which calls are considered as slow and increase the slow calls percentage.Resilience4jConfigurationProperties.withSlowCallRateThreshold(Float slowCallRateThreshold) Configures a threshold in percentage.Resilience4jConfigurationProperties.withThrowExceptionWhenHalfOpenOrOpenState(Boolean throwExceptionWhenHalfOpenOrOpenState) Whether to throw io.github.resilience4j.circuitbreaker.CallNotPermittedException when the call is rejected due circuit breaker is half open or open.Resilience4jConfigurationProperties.withTimeoutCancelRunningFuture(Boolean timeoutCancelRunningFuture) Configures whether cancel is called on the running future.Resilience4jConfigurationProperties.withTimeoutDuration(Integer timeoutDuration) Configures the thread execution timeout (millis).Resilience4jConfigurationProperties.withTimeoutEnabled(Boolean timeoutEnabled) Whether timeout is enabled or not on the circuit breaker.Resilience4jConfigurationProperties.withTimeoutExecutorServiceRef(String timeoutExecutorServiceRef) References to a custom thread pool to use when timeout is enabled (usesForkJoinPool.commonPool()by default)Resilience4jConfigurationProperties.withWaitDurationInOpenState(Integer waitDurationInOpenState) Configures the wait duration (in seconds) which specifies how long the CircuitBreaker should stay open, before it switches to half open.Resilience4jConfigurationProperties.withWritableStackTraceEnabled(Boolean writableStackTraceEnabled) Enables writable stack traces.