@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE,ANNOTATION_TYPE})
@Around
@Type(value=HystrixInterceptor.class)
public @interface HystrixCommand
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
command
Same as
value(). |
java.lang.String |
group
The command group key is used for grouping together commands such as for reporting,
alerting, dashboards or team/library ownership.
|
io.micronaut.context.annotation.Property[] |
properties |
java.lang.String |
threadPool
The thread-pool key is used to represent a
HystrixThreadPool for monitoring, metrics publishing, caching and other such uses.
|
java.lang.String |
value
Hystrix command key.
|
public abstract java.lang.String value
...
@HystrixCommand
public User getUserById(...)
...
the command name will be: 'getUserById'@AliasFor(annotation=Hystrix.class, member="group") public abstract java.lang.String group
@AliasFor(annotation=Hystrix.class, member="threadPool") public abstract java.lang.String threadPool
@AliasFor(annotation=Hystrix.class, member="commandProperties") public abstract io.micronaut.context.annotation.Property[] properties
HystrixCommandProperties