
Hystrix: Latency and Fault Tolerance for Distributed Systems
com.netflix.hystrix
Class HystrixCollapserProperties.Setter
java.lang.Object
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);
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)