Hystrix: Latency and Fault Tolerance for Distributed Systems



com.netflix.hystrix
Class HystrixCollapserProperties

java.lang.Object
  extended by com.netflix.hystrix.HystrixCollapserProperties

public abstract class HystrixCollapserProperties
extends java.lang.Object

Properties for instances of HystrixCollapser.

Default implementation of methods uses Archaius (https://github.com/Netflix/archaius)


Nested Class Summary
static class HystrixCollapserProperties.Setter
          Fluent interface that allows chained setting of properties that can be passed into a HystrixCollapser constructor to inject instance specific property overrides.
 
Constructor Summary
protected HystrixCollapserProperties(HystrixCollapserKey collapserKey)
           
protected HystrixCollapserProperties(HystrixCollapserKey collapserKey, HystrixCollapserProperties.Setter builder)
           
protected HystrixCollapserProperties(HystrixCollapserKey key, HystrixCollapserProperties.Setter builder, java.lang.String propertyPrefix)
           
 
Method Summary
 HystrixProperty<java.lang.Integer> maxRequestsInBatch()
          The maximum number of requests allowed in a batch before triggering a batch execution.
 HystrixProperty<java.lang.Boolean> requestCachingEnabled()
          Whether request caching is enabled for HystrixCollapser.execute() and HystrixCollapser.queue() invocations.
static HystrixCollapserProperties.Setter Setter()
          Factory method to retrieve the default Setter.
 HystrixProperty<java.lang.Integer> timerDelayInMilliseconds()
          The number of milliseconds between batch executions (unless HystrixCollapserProperties.maxRequestsInBatch is hit which will cause a batch to execute early.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HystrixCollapserProperties

protected HystrixCollapserProperties(HystrixCollapserKey collapserKey)

HystrixCollapserProperties

protected HystrixCollapserProperties(HystrixCollapserKey collapserKey,
                                     HystrixCollapserProperties.Setter builder)

HystrixCollapserProperties

protected HystrixCollapserProperties(HystrixCollapserKey key,
                                     HystrixCollapserProperties.Setter builder,
                                     java.lang.String propertyPrefix)
Method Detail

requestCachingEnabled

public HystrixProperty<java.lang.Boolean> requestCachingEnabled()
Whether request caching is enabled for HystrixCollapser.execute() and HystrixCollapser.queue() invocations.

Returns:
HystrixProperty<Boolean>

maxRequestsInBatch

public HystrixProperty<java.lang.Integer> maxRequestsInBatch()
The maximum number of requests allowed in a batch before triggering a batch execution.

Returns:
HystrixProperty<Integer>

timerDelayInMilliseconds

public HystrixProperty<java.lang.Integer> timerDelayInMilliseconds()
The number of milliseconds between batch executions (unless HystrixCollapserProperties.maxRequestsInBatch is hit which will cause a batch to execute early.

Returns:
HystrixProperty<Integer>

Setter

public static HystrixCollapserProperties.Setter Setter()
Factory method to retrieve the default Setter.