public static class HystrixCommandProperties.Setter extends Object
HystrixCommand
constructor to inject instance specific property overrides.
See HystrixPropertiesStrategy
for more information on order of precedence.
Example:
HystrixCommandProperties.Setter()
.withExecutionTimeoutInMilliseconds(100)
.withExecuteCommandOnSeparateThread(true);
public Boolean getCircuitBreakerEnabled()
public Integer getCircuitBreakerErrorThresholdPercentage()
public Boolean getCircuitBreakerForceClosed()
public Boolean getCircuitBreakerForceOpen()
public Integer getCircuitBreakerRequestVolumeThreshold()
public Integer getCircuitBreakerSleepWindowInMilliseconds()
public Integer getExecutionIsolationSemaphoreMaxConcurrentRequests()
public HystrixCommandProperties.ExecutionIsolationStrategy getExecutionIsolationStrategy()
public Boolean getExecutionIsolationThreadInterruptOnTimeout()
@Deprecated public Integer getExecutionIsolationThreadTimeoutInMilliseconds()
getExecutionTimeoutInMilliseconds()
public Integer getExecutionTimeoutInMilliseconds()
public Boolean getExecutionTimeoutEnabled()
public Integer getFallbackIsolationSemaphoreMaxConcurrentRequests()
public Boolean getFallbackEnabled()
public Integer getMetricsHealthSnapshotIntervalInMilliseconds()
public Integer getMetricsRollingPercentileBucketSize()
public Boolean getMetricsRollingPercentileEnabled()
public Integer getMetricsRollingPercentileWindowInMilliseconds()
public Integer getMetricsRollingPercentileWindowBuckets()
public Integer getMetricsRollingStatisticalWindowInMilliseconds()
public Integer getMetricsRollingStatisticalWindowBuckets()
public Boolean getRequestCacheEnabled()
public Boolean getRequestLogEnabled()
public HystrixCommandProperties.Setter withCircuitBreakerEnabled(boolean value)
public HystrixCommandProperties.Setter withCircuitBreakerErrorThresholdPercentage(int value)
public HystrixCommandProperties.Setter withCircuitBreakerForceClosed(boolean value)
public HystrixCommandProperties.Setter withCircuitBreakerForceOpen(boolean value)
public HystrixCommandProperties.Setter withCircuitBreakerRequestVolumeThreshold(int value)
public HystrixCommandProperties.Setter withCircuitBreakerSleepWindowInMilliseconds(int value)
public HystrixCommandProperties.Setter withExecutionIsolationSemaphoreMaxConcurrentRequests(int value)
public HystrixCommandProperties.Setter withExecutionIsolationStrategy(HystrixCommandProperties.ExecutionIsolationStrategy value)
public HystrixCommandProperties.Setter withExecutionIsolationThreadInterruptOnTimeout(boolean value)
@Deprecated public HystrixCommandProperties.Setter withExecutionIsolationThreadTimeoutInMilliseconds(int value)
withExecutionTimeoutInMilliseconds(int)
. Timeouts are no longer applied only to thread-isolated commands, so a thread-specific name is misleadingpublic HystrixCommandProperties.Setter withExecutionTimeoutInMilliseconds(int value)
public HystrixCommandProperties.Setter withExecutionTimeoutEnabled(boolean value)
public HystrixCommandProperties.Setter withFallbackIsolationSemaphoreMaxConcurrentRequests(int value)
public HystrixCommandProperties.Setter withFallbackEnabled(boolean value)
public HystrixCommandProperties.Setter withMetricsHealthSnapshotIntervalInMilliseconds(int value)
public HystrixCommandProperties.Setter withMetricsRollingPercentileBucketSize(int value)
public HystrixCommandProperties.Setter withMetricsRollingPercentileEnabled(boolean value)
public HystrixCommandProperties.Setter withMetricsRollingPercentileWindowInMilliseconds(int value)
public HystrixCommandProperties.Setter withMetricsRollingPercentileWindowBuckets(int value)
public HystrixCommandProperties.Setter withMetricsRollingStatisticalWindowInMilliseconds(int value)
public HystrixCommandProperties.Setter withMetricsRollingStatisticalWindowBuckets(int value)
public HystrixCommandProperties.Setter withRequestCacheEnabled(boolean value)
public HystrixCommandProperties.Setter withRequestLogEnabled(boolean value)
Copyright © 2015. All Rights Reserved.