Hystrix: Latency and Fault Tolerance for Distributed Systems



com.netflix.hystrix
Class HystrixThreadPoolProperties.Setter

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

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

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

See HystrixPropertiesStrategy for more information on order of precedence.

Example:

 HystrixThreadPoolProperties.Setter()
           .setCoreSize(10)
           .setQueueSizeRejectionThreshold(10);
  


Method Summary
 java.lang.Integer getCoreSize()
           
 java.lang.Integer getKeepAliveTimeMinutes()
           
 java.lang.Integer getMaxQueueSize()
           
 java.lang.Integer getMetricsRollingStatisticalWindowBuckets()
           
 java.lang.Integer getMetricsRollingStatisticalWindowInMilliseconds()
           
 java.lang.Integer getQueueSizeRejectionThreshold()
           
 HystrixThreadPoolProperties.Setter withCoreSize(int value)
           
 HystrixThreadPoolProperties.Setter withKeepAliveTimeMinutes(int value)
           
 HystrixThreadPoolProperties.Setter withMaxQueueSize(int value)
           
 HystrixThreadPoolProperties.Setter withMetricsRollingStatisticalWindowBuckets(int value)
           
 HystrixThreadPoolProperties.Setter withMetricsRollingStatisticalWindowInMilliseconds(int value)
           
 HystrixThreadPoolProperties.Setter withQueueSizeRejectionThreshold(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCoreSize

public java.lang.Integer getCoreSize()

getKeepAliveTimeMinutes

public java.lang.Integer getKeepAliveTimeMinutes()

getMaxQueueSize

public java.lang.Integer getMaxQueueSize()

getQueueSizeRejectionThreshold

public java.lang.Integer getQueueSizeRejectionThreshold()

getMetricsRollingStatisticalWindowInMilliseconds

public java.lang.Integer getMetricsRollingStatisticalWindowInMilliseconds()

getMetricsRollingStatisticalWindowBuckets

public java.lang.Integer getMetricsRollingStatisticalWindowBuckets()

withCoreSize

public HystrixThreadPoolProperties.Setter withCoreSize(int value)

withKeepAliveTimeMinutes

public HystrixThreadPoolProperties.Setter withKeepAliveTimeMinutes(int value)

withMaxQueueSize

public HystrixThreadPoolProperties.Setter withMaxQueueSize(int value)

withQueueSizeRejectionThreshold

public HystrixThreadPoolProperties.Setter withQueueSizeRejectionThreshold(int value)

withMetricsRollingStatisticalWindowInMilliseconds

public HystrixThreadPoolProperties.Setter withMetricsRollingStatisticalWindowInMilliseconds(int value)

withMetricsRollingStatisticalWindowBuckets

public HystrixThreadPoolProperties.Setter withMetricsRollingStatisticalWindowBuckets(int value)