| Package | Description |
|---|---|
| org.apache.camel.impl |
Default implementation classes for Camel Core
|
| org.apache.camel.model |
The JAXB POJOs for the
XML
Configuration of the routing rules.
|
| Modifier and Type | Method and Description |
|---|---|
HystrixConfigurationDefinition |
DefaultModel.getHystrixConfiguration(String id) |
HystrixConfigurationDefinition |
AbstractModelCamelContext.getHystrixConfiguration(String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultModel.addHystrixConfiguration(String id,
HystrixConfigurationDefinition configuration) |
void |
AbstractModelCamelContext.addHystrixConfiguration(String id,
HystrixConfigurationDefinition configuration) |
void |
DefaultModel.setHystrixConfiguration(HystrixConfigurationDefinition configuration) |
void |
AbstractModelCamelContext.setHystrixConfiguration(HystrixConfigurationDefinition configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultModel.setHystrixConfigurations(List<HystrixConfigurationDefinition> configurations) |
void |
AbstractModelCamelContext.setHystrixConfigurations(List<HystrixConfigurationDefinition> configurations) |
| Modifier and Type | Method and Description |
|---|---|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.allowMaximumSizeToDivergeFromCoreSize(boolean allowMaximumSizeToDivergeFromCoreSize)
Allows the configuration for maximumSize to take effect.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.circuitBreakerEnabled(boolean circuitBreakerEnabled)
Whether to use a HystrixCircuitBreaker or not.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.circuitBreakerErrorThresholdPercentage(int circuitBreakerErrorThresholdPercentage)
Error percentage threshold (as whole number such as 50) at which point
the circuit breaker will trip open and reject requests.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.circuitBreakerForceClosed(boolean circuitBreakerForceClosed)
If true the HystrixCircuitBreaker.allowRequest() will always return true
to allow requests regardless of the error percentage from
HystrixCommandMetrics.getHealthCounts().
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.circuitBreakerForceOpen(Boolean circuitBreakerForceOpen)
If true the HystrixCircuitBreaker.allowRequest() will always return
false, causing the circuit to be open (tripped) and reject all requests.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.circuitBreakerRequestVolumeThreshold(int circuitBreakerRequestVolumeThreshold)
Minimum number of requests in the
metricsRollingStatisticalWindowInMilliseconds() that must exist before
the HystrixCircuitBreaker will trip.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.circuitBreakerSleepWindowInMilliseconds(int circuitBreakerSleepWindowInMilliseconds)
The time in milliseconds after a HystrixCircuitBreaker trips open that it
should wait before trying requests again.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.corePoolSize(int corePoolSize)
Core thread-pool size.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.executionIsolationSemaphoreMaxConcurrentRequests(int executionIsolationSemaphoreMaxConcurrentRequests)
Number of concurrent requests permitted to HystrixCommand.run().
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.executionIsolationStrategy(String executionIsolationStrategy)
What isolation strategy HystrixCommand.run() will be executed with.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.executionIsolationThreadInterruptOnTimeout(boolean executionIsolationThreadInterruptOnTimeout)
Whether the execution thread should attempt an interrupt (using Future
cancel) when a thread times out.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.executionTimeoutEnabled(boolean executionTimeoutEnabled)
Whether the timeout mechanism is enabled for this command
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.executionTimeoutInMilliseconds(int executionTimeoutInMilliseconds)
Time in milliseconds at which point the command will timeout and halt
execution.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.fallbackEnabled(boolean fallbackEnabled)
Whether HystrixCommand.getFallback() should be attempted when failure
occurs.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.fallbackIsolationSemaphoreMaxConcurrentRequests(int fallbackIsolationSemaphoreMaxConcurrentRequests)
Number of concurrent requests permitted to HystrixCommand.getFallback().
|
HystrixConfigurationDefinition |
CircuitBreakerDefinition.getHystrixConfiguration() |
HystrixConfigurationDefinition |
Model.getHystrixConfiguration(String id)
Gets the Hystrix configuration by the given name.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.groupKey(String groupKey)
Sets the group key to use.
|
HystrixConfigurationDefinition |
CircuitBreakerDefinition.hystrixConfiguration()
Configures the circuit breaker to use Hystrix.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.keepAliveTime(int keepAliveTime)
Keep-alive time in minutes.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.maximumSize(int maximumSize)
Maximum thread-pool size that gets passed to
ThreadPoolExecutor.setMaximumPoolSize(int). |
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.maxQueueSize(int maxQueueSize)
Max queue size.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsHealthSnapshotIntervalInMilliseconds(int metricsHealthSnapshotIntervalInMilliseconds)
Time in milliseconds to wait between allowing health snapshots to be
taken that calculate success and error percentages and affect
HystrixCircuitBreaker.isOpen() status.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsRollingPercentileBucketSize(int metricsRollingPercentileBucketSize)
Maximum number of values stored in each bucket of the rolling percentile.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsRollingPercentileEnabled(boolean metricsRollingPercentileEnabled)
Whether percentile metrics should be captured using
HystrixRollingPercentile inside HystrixCommandMetrics.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsRollingPercentileWindowBuckets(int metricsRollingPercentileWindowBuckets)
Number of buckets the rolling percentile window is broken into.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsRollingPercentileWindowInMilliseconds(int metricsRollingPercentileWindowInMilliseconds)
Duration of percentile rolling window in milliseconds.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsRollingStatisticalWindowBuckets(int metricsRollingStatisticalWindowBuckets)
Number of buckets the rolling statistical window is broken into.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsRollingStatisticalWindowInMilliseconds(int metricsRollingStatisticalWindowInMilliseconds)
This property sets the duration of the statistical rolling window, in
milliseconds.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.queueSizeRejectionThreshold(int queueSizeRejectionThreshold)
Queue size rejection threshold is an artificial max size at which
rejections will occur even if maxQueueSize has not been reached.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.requestLogEnabled(boolean requestLogEnabled)
Whether HystrixCommand execution and events should be logged to
HystrixRequestLog.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.threadPoolKey(String threadPoolKey)
Sets the thread pool key to use.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.threadPoolRollingNumberStatisticalWindowBuckets(int threadPoolRollingNumberStatisticalWindowBuckets)
Number of buckets the rolling statistical window is broken into.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.threadPoolRollingNumberStatisticalWindowInMilliseconds(int threadPoolRollingNumberStatisticalWindowInMilliseconds)
Duration of statistical rolling window in milliseconds.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Model.addHystrixConfiguration(String id,
HystrixConfigurationDefinition configuration)
Adds the Hystrix configuration
|
CircuitBreakerDefinition |
CircuitBreakerDefinition.hystrixConfiguration(HystrixConfigurationDefinition configuration)
Configures the circuit breaker to use Hystrix with the given configuration.
|
void |
Model.setHystrixConfiguration(HystrixConfigurationDefinition configuration)
Sets the default Hystrix configuration
|
void |
CircuitBreakerDefinition.setHystrixConfiguration(HystrixConfigurationDefinition hystrixConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
Model.setHystrixConfigurations(List<HystrixConfigurationDefinition> configurations)
Sets the Hystrix configurations
|
Apache Camel