Hystrix: Latency and Fault Tolerance for Distributed Systems



com.netflix.hystrix
Class HystrixCommandProperties.Setter

java.lang.Object
  extended by com.netflix.hystrix.HystrixCommandProperties.Setter
Enclosing class:
HystrixCommandProperties

@NotThreadSafe
public static class HystrixCommandProperties.Setter
extends java.lang.Object

Fluent interface that allows chained setting of properties that can be passed into a HystrixCommand constructor to inject instance specific property overrides.

See HystrixPropertiesStrategy for more information on order of precedence.

Example:

 HystrixCommandProperties.Setter()
           .setExecutionTimeoutInMilliseconds(100)
           .setExecuteCommandOnSeparateThread(true);
  


Method Summary
 java.lang.Boolean getCircuitBreakerEnabled()
           
 java.lang.Integer getCircuitBreakerErrorThresholdPercentage()
           
 java.lang.Boolean getCircuitBreakerForceClosed()
           
 java.lang.Boolean getCircuitBreakerForceOpen()
           
 java.lang.Integer getCircuitBreakerRequestVolumeThreshold()
           
 java.lang.Integer getCircuitBreakerSleepWindowInMilliseconds()
           
 java.lang.Integer getExecutionIsolationSemaphoreMaxConcurrentRequests()
           
 HystrixCommandProperties.ExecutionIsolationStrategy getExecutionIsolationStrategy()
           
 java.lang.Boolean getExecutionIsolationThreadInterruptOnTimeout()
           
 java.lang.Integer getExecutionIsolationThreadTimeoutInMilliseconds()
           
 java.lang.Boolean getFallbackEnabled()
           
 java.lang.Integer getFallbackIsolationSemaphoreMaxConcurrentRequests()
           
 java.lang.Integer getMetricsHealthSnapshotIntervalInMilliseconds()
           
 java.lang.Integer getMetricsRollingPercentileBucketSize()
           
 java.lang.Boolean getMetricsRollingPercentileEnabled()
           
 java.lang.Integer getMetricsRollingPercentileWindowBuckets()
           
 java.lang.Integer getMetricsRollingPercentileWindowInMilliseconds()
           
 java.lang.Integer getMetricsRollingStatisticalWindowBuckets()
           
 java.lang.Integer getMetricsRollingStatisticalWindowInMilliseconds()
           
 java.lang.Boolean getRequestCacheEnabled()
           
 java.lang.Boolean getRequestLogEnabled()
           
 HystrixCommandProperties.Setter withCircuitBreakerEnabled(boolean value)
           
 HystrixCommandProperties.Setter withCircuitBreakerErrorThresholdPercentage(int value)
           
 HystrixCommandProperties.Setter withCircuitBreakerForceClosed(boolean value)
           
 HystrixCommandProperties.Setter withCircuitBreakerForceOpen(boolean value)
           
 HystrixCommandProperties.Setter withCircuitBreakerRequestVolumeThreshold(int value)
           
 HystrixCommandProperties.Setter withCircuitBreakerSleepWindowInMilliseconds(int value)
           
 HystrixCommandProperties.Setter withExecutionIsolationSemaphoreMaxConcurrentRequests(int value)
           
 HystrixCommandProperties.Setter withExecutionIsolationStrategy(HystrixCommandProperties.ExecutionIsolationStrategy value)
           
 HystrixCommandProperties.Setter withExecutionIsolationThreadInterruptOnTimeout(boolean value)
           
 HystrixCommandProperties.Setter withExecutionIsolationThreadTimeoutInMilliseconds(int value)
           
 HystrixCommandProperties.Setter withFallbackEnabled(boolean value)
           
 HystrixCommandProperties.Setter withFallbackIsolationSemaphoreMaxConcurrentRequests(int value)
           
 HystrixCommandProperties.Setter withMetricsHealthSnapshotIntervalInMilliseconds(int value)
           
 HystrixCommandProperties.Setter withMetricsRollingPercentileBucketSize(int value)
           
 HystrixCommandProperties.Setter withMetricsRollingPercentileEnabled(boolean value)
           
 HystrixCommandProperties.Setter withMetricsRollingPercentileWindowBuckets(int value)
           
 HystrixCommandProperties.Setter withMetricsRollingPercentileWindowInMilliseconds(int value)
           
 HystrixCommandProperties.Setter withMetricsRollingStatisticalWindowBuckets(int value)
           
 HystrixCommandProperties.Setter withMetricsRollingStatisticalWindowInMilliseconds(int value)
           
 HystrixCommandProperties.Setter withRequestCacheEnabled(boolean value)
           
 HystrixCommandProperties.Setter withRequestLogEnabled(boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCircuitBreakerEnabled

public java.lang.Boolean getCircuitBreakerEnabled()

getCircuitBreakerErrorThresholdPercentage

public java.lang.Integer getCircuitBreakerErrorThresholdPercentage()

getCircuitBreakerForceClosed

public java.lang.Boolean getCircuitBreakerForceClosed()

getCircuitBreakerForceOpen

public java.lang.Boolean getCircuitBreakerForceOpen()

getCircuitBreakerRequestVolumeThreshold

public java.lang.Integer getCircuitBreakerRequestVolumeThreshold()

getCircuitBreakerSleepWindowInMilliseconds

public java.lang.Integer getCircuitBreakerSleepWindowInMilliseconds()

getExecutionIsolationSemaphoreMaxConcurrentRequests

public java.lang.Integer getExecutionIsolationSemaphoreMaxConcurrentRequests()

getExecutionIsolationStrategy

public HystrixCommandProperties.ExecutionIsolationStrategy getExecutionIsolationStrategy()

getExecutionIsolationThreadInterruptOnTimeout

public java.lang.Boolean getExecutionIsolationThreadInterruptOnTimeout()

getExecutionIsolationThreadTimeoutInMilliseconds

public java.lang.Integer getExecutionIsolationThreadTimeoutInMilliseconds()

getFallbackIsolationSemaphoreMaxConcurrentRequests

public java.lang.Integer getFallbackIsolationSemaphoreMaxConcurrentRequests()

getFallbackEnabled

public java.lang.Boolean getFallbackEnabled()

getMetricsHealthSnapshotIntervalInMilliseconds

public java.lang.Integer getMetricsHealthSnapshotIntervalInMilliseconds()

getMetricsRollingPercentileBucketSize

public java.lang.Integer getMetricsRollingPercentileBucketSize()

getMetricsRollingPercentileEnabled

public java.lang.Boolean getMetricsRollingPercentileEnabled()

getMetricsRollingPercentileWindowInMilliseconds

public java.lang.Integer getMetricsRollingPercentileWindowInMilliseconds()

getMetricsRollingPercentileWindowBuckets

public java.lang.Integer getMetricsRollingPercentileWindowBuckets()

getMetricsRollingStatisticalWindowInMilliseconds

public java.lang.Integer getMetricsRollingStatisticalWindowInMilliseconds()

getMetricsRollingStatisticalWindowBuckets

public java.lang.Integer getMetricsRollingStatisticalWindowBuckets()

getRequestCacheEnabled

public java.lang.Boolean getRequestCacheEnabled()

getRequestLogEnabled

public java.lang.Boolean getRequestLogEnabled()

withCircuitBreakerEnabled

public HystrixCommandProperties.Setter withCircuitBreakerEnabled(boolean value)

withCircuitBreakerErrorThresholdPercentage

public HystrixCommandProperties.Setter withCircuitBreakerErrorThresholdPercentage(int value)

withCircuitBreakerForceClosed

public HystrixCommandProperties.Setter withCircuitBreakerForceClosed(boolean value)

withCircuitBreakerForceOpen

public HystrixCommandProperties.Setter withCircuitBreakerForceOpen(boolean value)

withCircuitBreakerRequestVolumeThreshold

public HystrixCommandProperties.Setter withCircuitBreakerRequestVolumeThreshold(int value)

withCircuitBreakerSleepWindowInMilliseconds

public HystrixCommandProperties.Setter withCircuitBreakerSleepWindowInMilliseconds(int value)

withExecutionIsolationSemaphoreMaxConcurrentRequests

public HystrixCommandProperties.Setter withExecutionIsolationSemaphoreMaxConcurrentRequests(int value)

withExecutionIsolationStrategy

public HystrixCommandProperties.Setter withExecutionIsolationStrategy(HystrixCommandProperties.ExecutionIsolationStrategy value)

withExecutionIsolationThreadInterruptOnTimeout

public HystrixCommandProperties.Setter withExecutionIsolationThreadInterruptOnTimeout(boolean value)

withExecutionIsolationThreadTimeoutInMilliseconds

public HystrixCommandProperties.Setter withExecutionIsolationThreadTimeoutInMilliseconds(int value)

withFallbackIsolationSemaphoreMaxConcurrentRequests

public HystrixCommandProperties.Setter withFallbackIsolationSemaphoreMaxConcurrentRequests(int value)

withFallbackEnabled

public HystrixCommandProperties.Setter withFallbackEnabled(boolean value)

withMetricsHealthSnapshotIntervalInMilliseconds

public HystrixCommandProperties.Setter withMetricsHealthSnapshotIntervalInMilliseconds(int value)

withMetricsRollingPercentileBucketSize

public HystrixCommandProperties.Setter withMetricsRollingPercentileBucketSize(int value)

withMetricsRollingPercentileEnabled

public HystrixCommandProperties.Setter withMetricsRollingPercentileEnabled(boolean value)

withMetricsRollingPercentileWindowInMilliseconds

public HystrixCommandProperties.Setter withMetricsRollingPercentileWindowInMilliseconds(int value)

withMetricsRollingPercentileWindowBuckets

public HystrixCommandProperties.Setter withMetricsRollingPercentileWindowBuckets(int value)

withMetricsRollingStatisticalWindowInMilliseconds

public HystrixCommandProperties.Setter withMetricsRollingStatisticalWindowInMilliseconds(int value)

withMetricsRollingStatisticalWindowBuckets

public HystrixCommandProperties.Setter withMetricsRollingStatisticalWindowBuckets(int value)

withRequestCacheEnabled

public HystrixCommandProperties.Setter withRequestCacheEnabled(boolean value)

withRequestLogEnabled

public HystrixCommandProperties.Setter withRequestLogEnabled(boolean value)