public static class HystrixCommandProperties.Setter
extends java.lang.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 java.lang.Boolean getCircuitBreakerEnabled()
public java.lang.Integer getCircuitBreakerErrorThresholdPercentage()
public java.lang.Boolean getCircuitBreakerForceClosed()
public java.lang.Boolean getCircuitBreakerForceOpen()
public java.lang.Integer getCircuitBreakerRequestVolumeThreshold()
public java.lang.Integer getCircuitBreakerSleepWindowInMilliseconds()
public java.lang.Integer getExecutionIsolationSemaphoreMaxConcurrentRequests()
public HystrixCommandProperties.ExecutionIsolationStrategy getExecutionIsolationStrategy()
public java.lang.Boolean getExecutionIsolationThreadInterruptOnTimeout()
@Deprecated public java.lang.Integer getExecutionIsolationThreadTimeoutInMilliseconds()
getExecutionTimeoutInMilliseconds()
public java.lang.Integer getExecutionTimeoutInMilliseconds()
public java.lang.Boolean getExecutionTimeoutEnabled()
public java.lang.Integer getFallbackIsolationSemaphoreMaxConcurrentRequests()
public java.lang.Boolean getFallbackEnabled()
public java.lang.Integer getMetricsHealthSnapshotIntervalInMilliseconds()
public java.lang.Integer getMetricsRollingPercentileBucketSize()
public java.lang.Boolean getMetricsRollingPercentileEnabled()
public java.lang.Integer getMetricsRollingPercentileWindowInMilliseconds()
public java.lang.Integer getMetricsRollingPercentileWindowBuckets()
public java.lang.Integer getMetricsRollingStatisticalWindowInMilliseconds()
public java.lang.Integer getMetricsRollingStatisticalWindowBuckets()
public java.lang.Boolean getRequestCacheEnabled()
public java.lang.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)