public static class HystrixObservableCollapser.Setter
extends java.lang.Object
HystrixObservableCollapser
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);
Modifier and Type | Method and Description |
---|---|
HystrixObservableCollapser.Setter |
andCollapserPropertiesDefaults(HystrixCollapserProperties.Setter propertiesSetter) |
HystrixObservableCollapser.Setter |
andScope(HystrixObservableCollapser.Scope scope)
HystrixObservableCollapser.Scope defining what scope the collapsing should occur within |
static HystrixObservableCollapser.Setter |
withCollapserKey(HystrixCollapserKey collapserKey)
Setter factory method containing required values.
|
public static HystrixObservableCollapser.Setter withCollapserKey(HystrixCollapserKey collapserKey)
All optional arguments can be set via the chained methods.
collapserKey
- HystrixCollapserKey
that identifies this collapser and provides the key used for retrieving properties, request caches, publishing metrics etc.public HystrixObservableCollapser.Setter andScope(HystrixObservableCollapser.Scope scope)
HystrixObservableCollapser.Scope
defining what scope the collapsing should occur withinscope
- collapser scopepublic HystrixObservableCollapser.Setter andCollapserPropertiesDefaults(HystrixCollapserProperties.Setter propertiesSetter)
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.