Package | Description |
---|---|
com.netflix.hystrix |
Core functionality of Hystrix including the HystrixCommand and HystrixCollapser to be extended from.
|
com.netflix.hystrix.strategy.concurrency |
Strategy definition for concurrency related behavior and default implementation.
|
com.netflix.hystrix.strategy.properties |
Strategy definition for properties and configuration and default implementation.
|
com.netflix.hystrix.util |
Common utility classes.
|
Modifier and Type | Method and Description |
---|---|
HystrixProperty<Boolean> |
HystrixCommandProperties.circuitBreakerEnabled()
Whether to use a
HystrixCircuitBreaker or not. |
HystrixProperty<Integer> |
HystrixCommandProperties.circuitBreakerErrorThresholdPercentage()
Error percentage threshold (as whole number such as 50) at which point the circuit breaker will trip open and reject requests.
|
HystrixProperty<Boolean> |
HystrixCommandProperties.circuitBreakerForceClosed()
If true the
HystrixCircuitBreaker.allowRequest() will always return true to allow requests regardless of the error percentage from HystrixCommandMetrics.getHealthCounts() . |
HystrixProperty<Boolean> |
HystrixCommandProperties.circuitBreakerForceOpen()
If true the
HystrixCircuitBreaker.allowRequest() will always return false, causing the circuit to be open (tripped) and reject all requests. |
HystrixProperty<Integer> |
HystrixCommandProperties.circuitBreakerRequestVolumeThreshold()
Minimum number of requests in the
HystrixCommandProperties.metricsRollingStatisticalWindowInMilliseconds() that must exist before the HystrixCircuitBreaker will trip. |
HystrixProperty<Integer> |
HystrixCommandProperties.circuitBreakerSleepWindowInMilliseconds()
The time in milliseconds after a
HystrixCircuitBreaker trips open that it should wait before trying requests again. |
HystrixProperty<Integer> |
HystrixThreadPoolProperties.coreSize()
Core thread-pool size that gets passed to
ThreadPoolExecutor.setCorePoolSize(int) |
HystrixProperty<Integer> |
HystrixCommandProperties.executionIsolationSemaphoreMaxConcurrentRequests()
Number of concurrent requests permitted to
HystrixCommand.run() . |
HystrixProperty<HystrixCommandProperties.ExecutionIsolationStrategy> |
HystrixCommandProperties.executionIsolationStrategy()
What isolation strategy
HystrixCommand.run() will be executed with. |
HystrixProperty<Boolean> |
HystrixCommandProperties.executionIsolationThreadInterruptOnTimeout()
Whether the execution thread should attempt an interrupt (using
Future.cancel(boolean) ) when a thread times out. |
HystrixProperty<String> |
HystrixCommandProperties.executionIsolationThreadPoolKeyOverride()
Allow a dynamic override of the
HystrixThreadPoolKey that will dynamically change which HystrixThreadPool a HystrixCommand executes on. |
HystrixProperty<Integer> |
HystrixCommandProperties.executionIsolationThreadTimeoutInMilliseconds()
Deprecated.
As of release 1.4.0, replaced by
HystrixCommandProperties.executionTimeoutInMilliseconds() . Timeout is no longer specific to thread-isolation commands, so the thread-specific name is misleading.
Time in milliseconds at which point the command will timeout and halt execution.
If |
HystrixProperty<Boolean> |
HystrixCommandProperties.executionTimeoutEnabled()
Whether the timeout mechanism is enabled for this command
|
HystrixProperty<Integer> |
HystrixCommandProperties.executionTimeoutInMilliseconds()
Time in milliseconds at which point the command will timeout and halt execution.
|
HystrixProperty<Boolean> |
HystrixCommandProperties.fallbackEnabled()
Whether
HystrixCommand.getFallback() should be attempted when failure occurs. |
HystrixProperty<Integer> |
HystrixCommandProperties.fallbackIsolationSemaphoreMaxConcurrentRequests()
Number of concurrent requests permitted to
HystrixCommand.getFallback() . |
HystrixProperty<Integer> |
HystrixThreadPoolProperties.keepAliveTimeMinutes()
Keep-alive time in minutes that gets passed to
ThreadPoolExecutor.setKeepAliveTime(long, TimeUnit) |
HystrixProperty<Integer> |
HystrixThreadPoolProperties.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. |
HystrixProperty<Integer> |
HystrixCollapserProperties.maxRequestsInBatch()
The maximum number of requests allowed in a batch before triggering a batch execution.
|
HystrixProperty<Integer> |
HystrixCommandProperties.metricsHealthSnapshotIntervalInMilliseconds()
Time in milliseconds to wait between allowing health snapshots to be taken that calculate success and error percentages and affect
HystrixCircuitBreaker.isOpen() status. |
HystrixProperty<Integer> |
HystrixCommandProperties.metricsRollingPercentileBucketSize()
Maximum number of values stored in each bucket of the rolling percentile.
|
HystrixProperty<Integer> |
HystrixCollapserProperties.metricsRollingPercentileBucketSize()
Maximum number of values stored in each bucket of the rolling percentile.
|
HystrixProperty<Boolean> |
HystrixCommandProperties.metricsRollingPercentileEnabled()
Whether percentile metrics should be captured using
HystrixRollingPercentile inside HystrixCommandMetrics . |
HystrixProperty<Boolean> |
HystrixCollapserProperties.metricsRollingPercentileEnabled()
Whether percentile metrics should be captured using
HystrixRollingPercentile inside HystrixCollapserMetrics . |
HystrixProperty<Integer> |
HystrixCommandProperties.metricsRollingPercentileWindow()
|
HystrixProperty<Integer> |
HystrixCommandProperties.metricsRollingPercentileWindowBuckets()
Number of buckets the rolling percentile window is broken into.
|
HystrixProperty<Integer> |
HystrixCollapserProperties.metricsRollingPercentileWindowBuckets()
Number of buckets the rolling percentile window is broken into.
|
HystrixProperty<Integer> |
HystrixCommandProperties.metricsRollingPercentileWindowInMilliseconds()
Duration of percentile rolling window in milliseconds.
|
HystrixProperty<Integer> |
HystrixCollapserProperties.metricsRollingPercentileWindowInMilliseconds()
Duration of percentile rolling window in milliseconds.
|
HystrixProperty<Integer> |
HystrixCommandProperties.metricsRollingStatisticalWindowBuckets()
Number of buckets the rolling statistical window is broken into.
|
HystrixProperty<Integer> |
HystrixCollapserProperties.metricsRollingStatisticalWindowBuckets()
Number of buckets the rolling statistical window is broken into.
|
HystrixProperty<Integer> |
HystrixThreadPoolProperties.metricsRollingStatisticalWindowBuckets()
Number of buckets the rolling statistical window is broken into.
|
HystrixProperty<Integer> |
HystrixCommandProperties.metricsRollingStatisticalWindowInMilliseconds()
Duration of statistical rolling window in milliseconds.
|
HystrixProperty<Integer> |
HystrixCollapserProperties.metricsRollingStatisticalWindowInMilliseconds()
Duration of statistical rolling window in milliseconds.
|
HystrixProperty<Integer> |
HystrixThreadPoolProperties.metricsRollingStatisticalWindowInMilliseconds()
Duration of statistical rolling window in milliseconds.
|
HystrixProperty<Integer> |
HystrixThreadPoolProperties.queueSizeRejectionThreshold()
Queue size rejection threshold is an artificial "max" size at which rejections will occur even if
HystrixThreadPoolProperties.maxQueueSize has not been reached. |
HystrixProperty<Boolean> |
HystrixCommandProperties.requestCacheEnabled()
Whether
AbstractCommand.getCacheKey() should be used with HystrixRequestCache to provide de-duplication functionality via request-scoped caching. |
HystrixProperty<Boolean> |
HystrixCollapserProperties.requestCacheEnabled()
Whether request caching is enabled for
HystrixCollapser.execute() and HystrixCollapser.queue() invocations. |
HystrixProperty<Boolean> |
HystrixCollapserProperties.requestCachingEnabled()
Deprecated.
|
HystrixProperty<Boolean> |
HystrixCommandProperties.requestLogEnabled()
Whether
HystrixCommand execution and events should be logged to HystrixRequestLog . |
HystrixProperty<Integer> |
HystrixCollapserProperties.timerDelayInMilliseconds()
The number of milliseconds between batch executions (unless
HystrixCollapserProperties.maxRequestsInBatch is hit which will cause a batch to execute early. |
Modifier and Type | Method and Description |
---|---|
ThreadPoolExecutor |
HystrixConcurrencyStrategy.getThreadPool(HystrixThreadPoolKey threadPoolKey,
HystrixProperty<Integer> corePoolSize,
HystrixProperty<Integer> maximumPoolSize,
HystrixProperty<Integer> keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue)
Factory method to provide
ThreadPoolExecutor instances as desired. |
ThreadPoolExecutor |
HystrixConcurrencyStrategy.getThreadPool(HystrixThreadPoolKey threadPoolKey,
HystrixProperty<Integer> corePoolSize,
HystrixProperty<Integer> maximumPoolSize,
HystrixProperty<Integer> keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue)
Factory method to provide
ThreadPoolExecutor instances as desired. |
ThreadPoolExecutor |
HystrixConcurrencyStrategy.getThreadPool(HystrixThreadPoolKey threadPoolKey,
HystrixProperty<Integer> corePoolSize,
HystrixProperty<Integer> maximumPoolSize,
HystrixProperty<Integer> keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue)
Factory method to provide
ThreadPoolExecutor instances as desired. |
Modifier and Type | Method and Description |
---|---|
static <T> HystrixProperty<T> |
HystrixProperty.Factory.asProperty(HystrixPropertiesChainedArchaiusProperty.ChainLink<T> chainedProperty) |
static HystrixProperty<Boolean> |
HystrixProperty.Factory.asProperty(HystrixPropertiesChainedArchaiusProperty.DynamicBooleanProperty value) |
static HystrixProperty<Integer> |
HystrixProperty.Factory.asProperty(HystrixPropertiesChainedArchaiusProperty.DynamicIntegerProperty value) |
static HystrixProperty<Long> |
HystrixProperty.Factory.asProperty(HystrixPropertiesChainedArchaiusProperty.DynamicLongProperty value) |
static HystrixProperty<String> |
HystrixProperty.Factory.asProperty(HystrixPropertiesChainedArchaiusProperty.DynamicStringProperty value) |
static <T> HystrixProperty<T> |
HystrixProperty.Factory.asProperty(HystrixProperty<T>... values)
When retrieved this will iterate over the contained
HystrixProperty instances until a non-null value is found and return that. |
static <T> HystrixProperty<T> |
HystrixProperty.Factory.asProperty(HystrixProperty<T> value,
T defaultValue)
When retrieved this will return the value from the given
HystrixProperty or if that returns null then return the defaultValue . |
static <T> HystrixProperty<T> |
HystrixProperty.Factory.asProperty(T value) |
static <T> HystrixProperty<T> |
HystrixProperty.Factory.nullProperty() |
Modifier and Type | Method and Description |
---|---|
static <T> HystrixProperty<T> |
HystrixProperty.Factory.asProperty(HystrixProperty<T>... values)
When retrieved this will iterate over the contained
HystrixProperty instances until a non-null value is found and return that. |
static <T> HystrixProperty<T> |
HystrixProperty.Factory.asProperty(HystrixProperty<T> value,
T defaultValue)
When retrieved this will return the value from the given
HystrixProperty or if that returns null then return the defaultValue . |
Constructor and Description |
---|
HystrixRollingNumber(HystrixProperty<Integer> timeInMilliseconds,
HystrixProperty<Integer> numberOfBuckets)
Deprecated.
Please use
instead . These values are no longer allowed to
be updated at runtime. |
HystrixRollingNumber(HystrixProperty<Integer> timeInMilliseconds,
HystrixProperty<Integer> numberOfBuckets)
Deprecated.
Please use
instead . These values are no longer allowed to
be updated at runtime. |
HystrixRollingPercentile(HystrixProperty<Integer> timeInMilliseconds,
HystrixProperty<Integer> numberOfBuckets,
HystrixProperty<Integer> bucketDataLength,
HystrixProperty<Boolean> enabled)
Deprecated.
Please use the constructor with non-configurable properties
HystrixRollingPercentile(Time, int, int, int, HystrixProperty |
HystrixRollingPercentile(HystrixProperty<Integer> timeInMilliseconds,
HystrixProperty<Integer> numberOfBuckets,
HystrixProperty<Integer> bucketDataLength,
HystrixProperty<Boolean> enabled)
Deprecated.
Please use the constructor with non-configurable properties
HystrixRollingPercentile(Time, int, int, int, HystrixProperty |
HystrixRollingPercentile(HystrixProperty<Integer> timeInMilliseconds,
HystrixProperty<Integer> numberOfBuckets,
HystrixProperty<Integer> bucketDataLength,
HystrixProperty<Boolean> enabled)
Deprecated.
Please use the constructor with non-configurable properties
HystrixRollingPercentile(Time, int, int, int, HystrixProperty |
HystrixRollingPercentile(HystrixProperty<Integer> timeInMilliseconds,
HystrixProperty<Integer> numberOfBuckets,
HystrixProperty<Integer> bucketDataLength,
HystrixProperty<Boolean> enabled)
Deprecated.
Please use the constructor with non-configurable properties
HystrixRollingPercentile(Time, int, int, int, HystrixProperty |
HystrixRollingPercentile(int timeInMilliseconds,
int numberOfBuckets,
int bucketDataLength,
HystrixProperty<Boolean> enabled) |
Copyright © 2017. All Rights Reserved.