@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface HystrixCommand
| Modifier and Type | Optional Element and Description | 
|---|---|
| String | commandKeyThe Hystrix command key is used to identify a command instance for statistics, circuit-breaker, properties, etc. | 
| String | fallbackMethodSpecifies a method to process fallback logic. | 
| String | groupKeyThe 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().HystrixCommandGroupKeypublic abstract String commandKey
Method.getName().HystrixCommandKeyCopyright © 2013-2018–2019 SeedStack. All rights reserved.