| Modifier and Type | Method and Description |
|---|---|
HystrixConfigurationProperties |
MainConfigurationProperties.hystrix()
To configure Circuit Breaker EIP with Hystrix
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withAllowMaximumSizeToDivergeFromCoreSize(Boolean allowMaximumSizeToDivergeFromCoreSize)
Allows the configuration for maximumSize to take effect.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withCircuitBreakerEnabled(Boolean circuitBreakerEnabled)
Whether to use a HystrixCircuitBreaker or not.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withCircuitBreakerErrorThresholdPercentage(Integer circuitBreakerErrorThresholdPercentage)
Error percentage threshold (as whole number such as 50) at which point the circuit breaker will trip open and reject requests.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withCircuitBreakerForceClosed(Boolean circuitBreakerForceClosed)
If true the HystrixCircuitBreaker#allowRequest() will always return true to allow requests regardless of
the error percentage from HystrixCommandMetrics.getHealthCounts().
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withCircuitBreakerForceOpen(Boolean circuitBreakerForceOpen)
If true the HystrixCircuitBreaker.allowRequest() will always return false, causing the circuit to be open (tripped) and reject all requests.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withCircuitBreakerRequestVolumeThreshold(Integer circuitBreakerRequestVolumeThreshold)
Minimum number of requests in the metricsRollingStatisticalWindowInMilliseconds() that must exist before the HystrixCircuitBreaker will trip.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withCircuitBreakerSleepWindowInMilliseconds(Integer circuitBreakerSleepWindowInMilliseconds)
The time in milliseconds after a HystrixCircuitBreaker trips open that it should wait before trying requests again.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withCorePoolSize(Integer corePoolSize)
Core thread-pool size that gets passed to
ThreadPoolExecutor.setCorePoolSize(int) |
HystrixConfigurationProperties |
HystrixConfigurationProperties.withExecutionIsolationSemaphoreMaxConcurrentRequests(Integer executionIsolationSemaphoreMaxConcurrentRequests)
Number of concurrent requests permitted to HystrixCommand.run().
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withExecutionIsolationStrategy(String executionIsolationStrategy)
What isolation strategy HystrixCommand.run() will be executed with.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withExecutionIsolationThreadInterruptOnTimeout(Boolean executionIsolationThreadInterruptOnTimeout)
Whether the execution thread should attempt an interrupt (using
Future.cancel(boolean)) when a thread times out. |
HystrixConfigurationProperties |
HystrixConfigurationProperties.withExecutionTimeoutEnabled(Boolean executionTimeoutEnabled)
Whether the timeout mechanism is enabled for this command
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withExecutionTimeoutInMilliseconds(Integer executionTimeoutInMilliseconds)
Time in milliseconds at which point the command will timeout and halt execution.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withFallbackEnabled(Boolean fallbackEnabled)
Whether HystrixCommand.getFallback() should be attempted when failure occurs.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withFallbackIsolationSemaphoreMaxConcurrentRequests(Integer fallbackIsolationSemaphoreMaxConcurrentRequests)
Number of concurrent requests permitted to HystrixCommand.getFallback().
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withGroupKey(String groupKey)
Sets the group key to use.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withKeepAliveTime(Integer keepAliveTime)
Keep-alive time in minutes that gets passed to
ThreadPoolExecutor.setKeepAliveTime(long, TimeUnit) |
HystrixConfigurationProperties |
HystrixConfigurationProperties.withMaximumSize(Integer maximumSize)
Maximum thread-pool size that gets passed to
ThreadPoolExecutor.setMaximumPoolSize(int). |
HystrixConfigurationProperties |
HystrixConfigurationProperties.withMaxQueueSize(Integer maxQueueSize)
Max queue size that gets passed to
BlockingQueue in HystrixConcurrencyStrategy.getBlockingQueue(int)
This should only affect the instantiation of a threadpool - it is not eliglible to change a queue size on the fly. |
HystrixConfigurationProperties |
HystrixConfigurationProperties.withMetricsHealthSnapshotIntervalInMilliseconds(Integer metricsHealthSnapshotIntervalInMilliseconds)
Time in milliseconds to wait between allowing health snapshots to be taken that calculate success and error
percentages and affect HystrixCircuitBreaker.isOpen() status.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withMetricsRollingPercentileBucketSize(Integer metricsRollingPercentileBucketSize)
Maximum number of values stored in each bucket of the rolling percentile.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withMetricsRollingPercentileEnabled(Boolean metricsRollingPercentileEnabled)
Whether percentile metrics should be captured using HystrixRollingPercentile inside HystrixCommandMetrics.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withMetricsRollingPercentileWindowBuckets(Integer metricsRollingPercentileWindowBuckets)
Number of buckets the rolling percentile window is broken into.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withMetricsRollingPercentileWindowInMilliseconds(Integer metricsRollingPercentileWindowInMilliseconds)
Duration of percentile rolling window in milliseconds.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withMetricsRollingStatisticalWindowBuckets(Integer metricsRollingStatisticalWindowBuckets)
Number of buckets the rolling statistical window is broken into.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withMetricsRollingStatisticalWindowInMilliseconds(Integer metricsRollingStatisticalWindowInMilliseconds)
This property sets the duration of the statistical rolling window, in milliseconds.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withQueueSizeRejectionThreshold(Integer queueSizeRejectionThreshold)
Queue size rejection threshold is an artificial max size at which rejections will occur even
if
maxQueueSize has not been reached. |
HystrixConfigurationProperties |
HystrixConfigurationProperties.withRequestLogEnabled(Boolean requestLogEnabled)
Whether HystrixCommand execution and events should be logged to HystrixRequestLog.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withThreadPoolKey(String threadPoolKey)
Sets the thread pool key to use.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withThreadPoolRollingNumberStatisticalWindowBuckets(Integer threadPoolRollingNumberStatisticalWindowBuckets)
Number of buckets the rolling statistical window is broken into.
|
HystrixConfigurationProperties |
HystrixConfigurationProperties.withThreadPoolRollingNumberStatisticalWindowInMilliseconds(Integer threadPoolRollingNumberStatisticalWindowInMilliseconds)
Duration of statistical rolling window in milliseconds.
|
Apache Camel