Package | Description |
---|---|
org.apache.camel |
The core Camel API.
|
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 |
CamelContext.getHystrixConfiguration(String id)
Gets the Hystrix configuration by the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
CamelContext.addHystrixConfiguration(String id,
HystrixConfigurationDefinition configuration)
Adds the Hystrix configuration
|
void |
CamelContext.setHystrixConfiguration(HystrixConfigurationDefinition configuration)
Sets the default Hystrix configuration
|
Modifier and Type | Method and Description |
---|---|
void |
CamelContext.setHystrixConfigurations(List<HystrixConfigurationDefinition> configurations)
Sets the Hystrix configurations
|
Modifier and Type | Method and Description |
---|---|
HystrixConfigurationDefinition |
DefaultCamelContext.getHystrixConfiguration(String id) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultCamelContext.addHystrixConfiguration(String id,
HystrixConfigurationDefinition configuration) |
void |
DefaultCamelContext.setHystrixConfiguration(HystrixConfigurationDefinition configuration) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultCamelContext.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(Integer 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(Integer circuitBreakerRequestVolumeThreshold)
Minimum number of requests in the metricsRollingStatisticalWindowInMilliseconds() that must exist before the HystrixCircuitBreaker will trip.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.circuitBreakerSleepWindowInMilliseconds(Integer circuitBreakerSleepWindowInMilliseconds)
The time in milliseconds after a HystrixCircuitBreaker trips open that it should wait before trying requests again.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.corePoolSize(Integer corePoolSize)
Core thread-pool size that gets passed to
ThreadPoolExecutor.setCorePoolSize(int) |
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.executionIsolationSemaphoreMaxConcurrentRequests(Integer 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(boolean) ) when a thread times out. |
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.executionTimeoutEnabled(Boolean executionTimeoutEnabled)
Whether the timeout mechanism is enabled for this command
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.executionTimeoutInMilliseconds(Integer 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(Integer fallbackIsolationSemaphoreMaxConcurrentRequests)
Number of concurrent requests permitted to HystrixCommand.getFallback().
|
HystrixConfigurationDefinition |
HystrixDefinition.getHystrixConfiguration() |
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.groupKey(String groupKey)
Sets the group key to use.
|
HystrixConfigurationDefinition |
HystrixDefinition.hystrixConfiguration()
Configures the Hystrix EIP
Use end when configuration is complete, to return back to the Hystrix EIP.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.keepAliveTime(Integer keepAliveTime)
Keep-alive time in minutes that gets passed to
ThreadPoolExecutor.setKeepAliveTime(long, TimeUnit) |
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.maximumSize(Integer maximumSize)
Maximum thread-pool size that gets passed to
ThreadPoolExecutor.setMaximumPoolSize(int) . |
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.maxQueueSize(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. |
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsHealthSnapshotIntervalInMilliseconds(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.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsRollingPercentileBucketSize(Integer 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(Integer metricsRollingPercentileWindowBuckets)
Number of buckets the rolling percentile window is broken into.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsRollingPercentileWindowInMilliseconds(Integer metricsRollingPercentileWindowInMilliseconds)
Duration of percentile rolling window in milliseconds.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsRollingStatisticalWindowBuckets(Integer metricsRollingStatisticalWindowBuckets)
Number of buckets the rolling statistical window is broken into.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.metricsRollingStatisticalWindowInMilliseconds(Integer metricsRollingStatisticalWindowInMilliseconds)
This property sets the duration of the statistical rolling window, in milliseconds.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.queueSizeRejectionThreshold(Integer queueSizeRejectionThreshold)
Queue size rejection threshold is an artificial "max" size at which rejections will occur even
if
maxQueueSize(java.lang.Integer) 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(Integer threadPoolRollingNumberStatisticalWindowBuckets)
Number of buckets the rolling statistical window is broken into.
|
HystrixConfigurationDefinition |
HystrixConfigurationDefinition.threadPoolRollingNumberStatisticalWindowInMilliseconds(Integer threadPoolRollingNumberStatisticalWindowInMilliseconds)
Duration of statistical rolling window in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
HystrixDefinition |
HystrixDefinition.hystrixConfiguration(HystrixConfigurationDefinition configuration)
Configures the Hystrix EIP using the given configuration
|
void |
HystrixDefinition.setHystrixConfiguration(HystrixConfigurationDefinition hystrixConfiguration) |
Apache Camel