@Metadata(label="eip,routing,circuitbreaker") @Configurer(extended=true) @Deprecated public class HystrixConfigurationDefinition extends HystrixConfigurationCommon
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GROUP_KEY
Deprecated.
|
Constructor and Description |
---|
HystrixConfigurationDefinition()
Deprecated.
|
HystrixConfigurationDefinition(CircuitBreakerDefinition parent)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
HystrixConfigurationDefinition |
allowMaximumSizeToDivergeFromCoreSize(boolean allowMaximumSizeToDivergeFromCoreSize)
Deprecated.
Allows the configuration for maximumSize to take effect.
|
HystrixConfigurationDefinition |
circuitBreakerEnabled(boolean circuitBreakerEnabled)
Deprecated.
Whether to use a HystrixCircuitBreaker or not.
|
HystrixConfigurationDefinition |
circuitBreakerErrorThresholdPercentage(int circuitBreakerErrorThresholdPercentage)
Deprecated.
Error percentage threshold (as whole number such as 50) at which point the circuit breaker will trip open and
reject requests.
|
HystrixConfigurationDefinition |
circuitBreakerForceClosed(boolean circuitBreakerForceClosed)
Deprecated.
If true the HystrixCircuitBreaker.allowRequest() will always return true to allow requests regardless of the
error percentage from HystrixCommandMetrics.getHealthCounts().
|
HystrixConfigurationDefinition |
circuitBreakerForceOpen(boolean circuitBreakerForceOpen)
Deprecated.
If true the HystrixCircuitBreaker.allowRequest() will always return false, causing the circuit to be open
(tripped) and reject all requests.
|
HystrixConfigurationDefinition |
circuitBreakerRequestVolumeThreshold(int circuitBreakerRequestVolumeThreshold)
Deprecated.
Minimum number of requests in the metricsRollingStatisticalWindowInMilliseconds() that must exist before the
HystrixCircuitBreaker will trip.
|
HystrixConfigurationDefinition |
circuitBreakerSleepWindowInMilliseconds(int circuitBreakerSleepWindowInMilliseconds)
Deprecated.
The time in milliseconds after a HystrixCircuitBreaker trips open that it should wait before trying requests
again.
|
HystrixConfigurationDefinition |
corePoolSize(int corePoolSize)
Deprecated.
Core thread-pool size.
|
CircuitBreakerDefinition |
end()
Deprecated.
End of configuration.
|
HystrixConfigurationDefinition |
executionIsolationSemaphoreMaxConcurrentRequests(int executionIsolationSemaphoreMaxConcurrentRequests)
Deprecated.
Number of concurrent requests permitted to HystrixCommand.run().
|
HystrixConfigurationDefinition |
executionIsolationStrategy(String executionIsolationStrategy)
Deprecated.
What isolation strategy HystrixCommand.run() will be executed with.
|
HystrixConfigurationDefinition |
executionIsolationThreadInterruptOnTimeout(boolean executionIsolationThreadInterruptOnTimeout)
Deprecated.
Whether the execution thread should attempt an interrupt (using Future cancel) when a thread times out.
|
HystrixConfigurationDefinition |
executionTimeoutEnabled(boolean executionTimeoutEnabled)
Deprecated.
Whether the timeout mechanism is enabled for this command
|
HystrixConfigurationDefinition |
executionTimeoutInMilliseconds(int executionTimeoutInMilliseconds)
Deprecated.
Time in milliseconds at which point the command will timeout and halt execution.
|
HystrixConfigurationDefinition |
fallbackEnabled(boolean fallbackEnabled)
Deprecated.
Whether HystrixCommand.getFallback() should be attempted when failure occurs.
|
HystrixConfigurationDefinition |
fallbackIsolationSemaphoreMaxConcurrentRequests(int fallbackIsolationSemaphoreMaxConcurrentRequests)
Deprecated.
Number of concurrent requests permitted to HystrixCommand.getFallback().
|
HystrixConfigurationDefinition |
groupKey(String groupKey)
Deprecated.
Sets the group key to use.
|
HystrixConfigurationDefinition |
keepAliveTime(int keepAliveTime)
Deprecated.
Keep-alive time in minutes.
|
HystrixConfigurationDefinition |
maximumSize(int maximumSize)
Deprecated.
Maximum thread-pool size that gets passed to
ThreadPoolExecutor.setMaximumPoolSize(int) . |
HystrixConfigurationDefinition |
maxQueueSize(int maxQueueSize)
Deprecated.
Max queue size.
|
HystrixConfigurationDefinition |
metricsHealthSnapshotIntervalInMilliseconds(int metricsHealthSnapshotIntervalInMilliseconds)
Deprecated.
Time in milliseconds to wait between allowing health snapshots to be taken that calculate success and error
percentages and affect HystrixCircuitBreaker.isOpen() status.
|
HystrixConfigurationDefinition |
metricsRollingPercentileBucketSize(int metricsRollingPercentileBucketSize)
Deprecated.
Maximum number of values stored in each bucket of the rolling percentile.
|
HystrixConfigurationDefinition |
metricsRollingPercentileEnabled(boolean metricsRollingPercentileEnabled)
Deprecated.
Whether percentile metrics should be captured using HystrixRollingPercentile inside HystrixCommandMetrics.
|
HystrixConfigurationDefinition |
metricsRollingPercentileWindowBuckets(int metricsRollingPercentileWindowBuckets)
Deprecated.
Number of buckets the rolling percentile window is broken into.
|
HystrixConfigurationDefinition |
metricsRollingPercentileWindowInMilliseconds(int metricsRollingPercentileWindowInMilliseconds)
Deprecated.
Duration of percentile rolling window in milliseconds.
|
HystrixConfigurationDefinition |
metricsRollingStatisticalWindowBuckets(int metricsRollingStatisticalWindowBuckets)
Deprecated.
Number of buckets the rolling statistical window is broken into.
|
HystrixConfigurationDefinition |
metricsRollingStatisticalWindowInMilliseconds(int metricsRollingStatisticalWindowInMilliseconds)
Deprecated.
This property sets the duration of the statistical rolling window, in milliseconds.
|
HystrixConfigurationDefinition |
queueSizeRejectionThreshold(int queueSizeRejectionThreshold)
Deprecated.
Queue size rejection threshold is an artificial max size at which rejections will occur even if maxQueueSize has
not been reached.
|
HystrixConfigurationDefinition |
requestLogEnabled(boolean requestLogEnabled)
Deprecated.
Whether HystrixCommand execution and events should be logged to HystrixRequestLog.
|
HystrixConfigurationDefinition |
threadPoolKey(String threadPoolKey)
Deprecated.
Sets the thread pool key to use.
|
HystrixConfigurationDefinition |
threadPoolRollingNumberStatisticalWindowBuckets(int threadPoolRollingNumberStatisticalWindowBuckets)
Deprecated.
Number of buckets the rolling statistical window is broken into.
|
HystrixConfigurationDefinition |
threadPoolRollingNumberStatisticalWindowInMilliseconds(int threadPoolRollingNumberStatisticalWindowInMilliseconds)
Deprecated.
Duration of statistical rolling window in milliseconds.
|
getAllowMaximumSizeToDivergeFromCoreSize, getCircuitBreakerEnabled, getCircuitBreakerErrorThresholdPercentage, getCircuitBreakerForceClosed, getCircuitBreakerForceOpen, getCircuitBreakerRequestVolumeThreshold, getCircuitBreakerSleepWindowInMilliseconds, getCorePoolSize, getExecutionIsolationSemaphoreMaxConcurrentRequests, getExecutionIsolationStrategy, getExecutionIsolationThreadInterruptOnTimeout, getExecutionTimeoutEnabled, getExecutionTimeoutInMilliseconds, getFallbackEnabled, getFallbackIsolationSemaphoreMaxConcurrentRequests, getGroupKey, getKeepAliveTime, getMaximumSize, getMaxQueueSize, getMetricsHealthSnapshotIntervalInMilliseconds, getMetricsRollingPercentileBucketSize, getMetricsRollingPercentileEnabled, getMetricsRollingPercentileWindowBuckets, getMetricsRollingPercentileWindowInMilliseconds, getMetricsRollingStatisticalWindowBuckets, getMetricsRollingStatisticalWindowInMilliseconds, getQueueSizeRejectionThreshold, getRequestLogEnabled, getThreadPoolKey, getThreadPoolRollingNumberStatisticalWindowBuckets, getThreadPoolRollingNumberStatisticalWindowInMilliseconds, setAllowMaximumSizeToDivergeFromCoreSize, setCircuitBreakerEnabled, setCircuitBreakerErrorThresholdPercentage, setCircuitBreakerForceClosed, setCircuitBreakerForceOpen, setCircuitBreakerRequestVolumeThreshold, setCircuitBreakerSleepWindowInMilliseconds, setCorePoolSize, setExecutionIsolationSemaphoreMaxConcurrentRequests, setExecutionIsolationStrategy, setExecutionIsolationThreadInterruptOnTimeout, setExecutionTimeoutEnabled, setExecutionTimeoutInMilliseconds, setFallbackEnabled, setFallbackIsolationSemaphoreMaxConcurrentRequests, setGroupKey, setKeepAliveTime, setMaximumSize, setMaxQueueSize, setMetricsHealthSnapshotIntervalInMilliseconds, setMetricsRollingPercentileBucketSize, setMetricsRollingPercentileEnabled, setMetricsRollingPercentileWindowBuckets, setMetricsRollingPercentileWindowInMilliseconds, setMetricsRollingStatisticalWindowBuckets, setMetricsRollingStatisticalWindowInMilliseconds, setQueueSizeRejectionThreshold, setRequestLogEnabled, setThreadPoolKey, setThreadPoolRollingNumberStatisticalWindowBuckets, setThreadPoolRollingNumberStatisticalWindowInMilliseconds
getId, setId
public static final String DEFAULT_GROUP_KEY
public HystrixConfigurationDefinition()
public HystrixConfigurationDefinition(CircuitBreakerDefinition parent)
public HystrixConfigurationDefinition groupKey(String groupKey)
public HystrixConfigurationDefinition threadPoolKey(String threadPoolKey)
public HystrixConfigurationDefinition circuitBreakerEnabled(boolean circuitBreakerEnabled)
This is similar in effect to circuitBreakerForceClosed() except that continues tracking metrics and knowing whether it should be open/closed, this property results in not even instantiating a circuit-breaker.
public HystrixConfigurationDefinition circuitBreakerErrorThresholdPercentage(int circuitBreakerErrorThresholdPercentage)
It will stay tripped for the duration defined in circuitBreakerSleepWindowInMilliseconds;
The error percentage this is compared against comes from HystrixCommandMetrics.getHealthCounts().
public HystrixConfigurationDefinition circuitBreakerForceClosed(boolean circuitBreakerForceClosed)
The circuitBreakerForceOpen() property takes precedence so if it set to true this property does nothing.
public HystrixConfigurationDefinition circuitBreakerForceOpen(boolean circuitBreakerForceOpen)
This property takes precedence over circuitBreakerForceClosed();
public HystrixConfigurationDefinition circuitBreakerRequestVolumeThreshold(int circuitBreakerRequestVolumeThreshold)
If below this number the circuit will not trip regardless of error percentage.
public HystrixConfigurationDefinition circuitBreakerSleepWindowInMilliseconds(int circuitBreakerSleepWindowInMilliseconds)
public HystrixConfigurationDefinition executionIsolationSemaphoreMaxConcurrentRequests(int executionIsolationSemaphoreMaxConcurrentRequests)
Applicable only when executionIsolationStrategy is SEMAPHORE.
public HystrixConfigurationDefinition executionIsolationStrategy(String executionIsolationStrategy)
If THREAD then it will be executed on a separate thread and concurrent requests limited by the number of threads in the thread-pool.
If SEMAPHORE then it will be executed on the calling thread and concurrent requests limited by the semaphore count.
public HystrixConfigurationDefinition executionIsolationThreadInterruptOnTimeout(boolean executionIsolationThreadInterruptOnTimeout)
Applicable only when executionIsolationStrategy() is set to THREAD.
public HystrixConfigurationDefinition executionTimeoutInMilliseconds(int executionTimeoutInMilliseconds)
If executionIsolationThreadInterruptOnTimeout is true and the command is thread-isolated, the executing thread will be interrupted. If the command is semaphore-isolated and a HystrixObservableCommand, that command will get unsubscribed.
public HystrixConfigurationDefinition executionTimeoutEnabled(boolean executionTimeoutEnabled)
public HystrixConfigurationDefinition fallbackIsolationSemaphoreMaxConcurrentRequests(int fallbackIsolationSemaphoreMaxConcurrentRequests)
public HystrixConfigurationDefinition fallbackEnabled(boolean fallbackEnabled)
public HystrixConfigurationDefinition metricsHealthSnapshotIntervalInMilliseconds(int metricsHealthSnapshotIntervalInMilliseconds)
On high-volume circuits the continual calculation of error percentage can become CPU intensive thus this controls how often it is calculated.
public HystrixConfigurationDefinition metricsRollingPercentileBucketSize(int metricsRollingPercentileBucketSize)
public HystrixConfigurationDefinition metricsRollingPercentileEnabled(boolean metricsRollingPercentileEnabled)
public HystrixConfigurationDefinition metricsRollingPercentileWindowInMilliseconds(int metricsRollingPercentileWindowInMilliseconds)
public HystrixConfigurationDefinition metricsRollingPercentileWindowBuckets(int metricsRollingPercentileWindowBuckets)
public HystrixConfigurationDefinition metricsRollingStatisticalWindowInMilliseconds(int metricsRollingStatisticalWindowInMilliseconds)
public HystrixConfigurationDefinition metricsRollingStatisticalWindowBuckets(int metricsRollingStatisticalWindowBuckets)
public HystrixConfigurationDefinition requestLogEnabled(boolean requestLogEnabled)
public HystrixConfigurationDefinition corePoolSize(int corePoolSize)
public HystrixConfigurationDefinition keepAliveTime(int keepAliveTime)
public HystrixConfigurationDefinition maxQueueSize(int maxQueueSize)
public HystrixConfigurationDefinition maximumSize(int maximumSize)
ThreadPoolExecutor.setMaximumPoolSize(int)
. This is the
maximum amount of concurrency that can be supported without starting to reject HystrixCommands. Please note that
this setting only takes effect if you also set allowMaximumSizeToDivergeFromCoreSizepublic HystrixConfigurationDefinition queueSizeRejectionThreshold(int queueSizeRejectionThreshold)
This is used by HystrixCommand when queuing a thread for execution.
public HystrixConfigurationDefinition threadPoolRollingNumberStatisticalWindowInMilliseconds(int threadPoolRollingNumberStatisticalWindowInMilliseconds)
public HystrixConfigurationDefinition threadPoolRollingNumberStatisticalWindowBuckets(int threadPoolRollingNumberStatisticalWindowBuckets)
public HystrixConfigurationDefinition allowMaximumSizeToDivergeFromCoreSize(boolean allowMaximumSizeToDivergeFromCoreSize)
public CircuitBreakerDefinition end()
Apache Camel