Hystrix: Latency and Fault Tolerance for Distributed Systems



com.netflix.hystrix
Class HystrixCollapserProperties.Setter

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

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

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

See HystrixPropertiesStrategy for more information on order of precedence.

Example:

 HystrixCollapserProperties.Setter()
           .setMaxRequestsInBatch(100)
           .setTimerDelayInMilliseconds(10);
  


Method Summary
 java.lang.Boolean getCollapsingEnabled()
           
 java.lang.Integer getMaxRequestsInBatch()
           
 java.lang.Boolean getRequestCacheEnabled()
           
 java.lang.Integer getTimerDelayInMilliseconds()
           
 HystrixCollapserProperties.Setter withCollapsingEnabled(boolean value)
           
 HystrixCollapserProperties.Setter withMaxRequestsInBatch(int value)
           
 HystrixCollapserProperties.Setter withRequestCacheEnabled(boolean value)
           
 HystrixCollapserProperties.Setter withTimerDelayInMilliseconds(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCollapsingEnabled

public java.lang.Boolean getCollapsingEnabled()

getMaxRequestsInBatch

public java.lang.Integer getMaxRequestsInBatch()

getTimerDelayInMilliseconds

public java.lang.Integer getTimerDelayInMilliseconds()

getRequestCacheEnabled

public java.lang.Boolean getRequestCacheEnabled()

withCollapsingEnabled

public HystrixCollapserProperties.Setter withCollapsingEnabled(boolean value)

withMaxRequestsInBatch

public HystrixCollapserProperties.Setter withMaxRequestsInBatch(int value)

withTimerDelayInMilliseconds

public HystrixCollapserProperties.Setter withTimerDelayInMilliseconds(int value)

withRequestCacheEnabled

public HystrixCollapserProperties.Setter withRequestCacheEnabled(boolean value)