@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface HystrixCollapser
HystrixCommand annotation.
Example:
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
batchMethod
Method name of batch command.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
collapserKey
Specifies a collapser key.
|
HystrixProperty[] |
collapserProperties
Specifies collapser properties.
|
com.netflix.hystrix.HystrixCollapser.Scope |
scope
Defines what scope the collapsing should occur within.
|
public abstract java.lang.String batchMethod
java.util.List method(java.util.List)
NOTE: batch method can have only one argument.public abstract java.lang.String collapserKey
public abstract com.netflix.hystrix.HystrixCollapser.Scope scope
HystrixCollapser.Scope.REQUEST.HystrixCollapser.Scopepublic abstract HystrixProperty[] collapserProperties