com.netflix.hystrix
Class HystrixCollapser.Setter

java.lang.Object
  extended by com.netflix.hystrix.HystrixCollapser.Setter
Enclosing class:
HystrixCollapser<BatchReturnType,ResponseType,RequestArgumentType>

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

Fluent interface for arguments to the HystrixCollapser constructor.

The required arguments are set via the 'with' factory method and optional arguments via the 'and' chained methods.

Example:

 Setter.withCollapserKey(HystrixCollapserKey.Factory.asKey("CollapserName"))
                .andScope(Scope.REQUEST);
  


Method Summary
 HystrixCollapser.Setter andCollapserPropertiesDefaults(HystrixCollapserProperties.Setter propertiesSetter)
           
 HystrixCollapser.Setter andConcurrencyStrategy(HystrixConcurrencyStrategy concurrencyStrategy)
           
 HystrixCollapser.Setter andPropertiesStrategy(HystrixPropertiesStrategy propertiesStrategy)
           
 HystrixCollapser.Setter andScope(HystrixCollapser.Scope scope)
          HystrixCollapser.Scope defining what scope the collapsing should occur within
static HystrixCollapser.Setter withCollapserKey(HystrixCollapserKey collapserKey)
          Setter factory method containing required values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

withCollapserKey

public static HystrixCollapser.Setter withCollapserKey(HystrixCollapserKey collapserKey)
Setter factory method containing required values.

All optional arguments can be set via the chained methods.

Parameters:
collapserKey - HystrixCollapserKey that identifies this collapser and provides the key used for retrieving properties, request caches, publishing metrics etc.
Returns:
Setter for fluent interface via method chaining

andScope

public HystrixCollapser.Setter andScope(HystrixCollapser.Scope scope)
HystrixCollapser.Scope defining what scope the collapsing should occur within

Parameters:
scope -
Returns:
Setter for fluent interface via method chaining

andPropertiesStrategy

public HystrixCollapser.Setter andPropertiesStrategy(HystrixPropertiesStrategy propertiesStrategy)
Parameters:
propertiesStrategy - HystrixPropertiesStrategy implementation to override the default behavior.

See JavaDoc on HystrixPropertiesStrategy class header for more information.

Will use default if left NULL.

Returns:
Setter for fluent interface via method chaining

andCollapserPropertiesDefaults

public HystrixCollapser.Setter andCollapserPropertiesDefaults(HystrixCollapserProperties.Setter propertiesSetter)
Parameters:
propertiesSetter - HystrixCollapserProperties.Setter that allows instance specific property overrides (which can then be overridden by dynamic properties, see HystrixPropertiesStrategy for information on order of precedence).

Will use defaults if left NULL.

Returns:
Setter for fluent interface via method chaining

andConcurrencyStrategy

public HystrixCollapser.Setter andConcurrencyStrategy(HystrixConcurrencyStrategy concurrencyStrategy)
Parameters:
concurrencyStrategy - HystrixConcurrencyStrategy implementation to override the default behavior.

See JavaDoc on HystrixConcurrencyStrategy class header for more information.

Will use default if left NULL.

Returns:
Setter for fluent interface via method chaining