@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface HystrixCommand
Modifier and Type | Optional Element and Description |
---|---|
String |
commandKey
The Hystrix command key is used to identify a command instance for statistics, circuit-breaker, properties, etc.
|
String |
fallbackMethod
Specifies a method to process fallback logic.
|
String |
groupKey
The command group key is used for grouping together commands such as for reporting,
alerting, dashboards or team/library ownership.
|
public abstract String fallbackMethod
@HystrixCommand(fallbackMethod = "getByIdFallback")
public String getById(String id) {...}
private String getByIdFallback(String id) {...}
HystrixCommand
.public abstract String groupKey
Method.getName()
.HystrixCommandGroupKey
public abstract String commandKey
Method.getName()
.HystrixCommandKey
Copyright © 2013-2018–2019 SeedStack. All rights reserved.