@Target(value=METHOD) @Retention(value=RUNTIME) @Inherited public @interface SentinelResource
| Modifier and Type | Optional Element and Description |
|---|---|
String |
blockHandler |
Class<?>[] |
blockHandlerClass
The
blockHandler is located in the same class with the original method by default. |
EntryType |
entryType |
Class<? extends Throwable>[] |
exceptionsToTrace |
String |
fallback |
String |
value |
public abstract String value
public abstract EntryType entryType
public abstract String blockHandler
public abstract Class<?>[] blockHandlerClass
blockHandler is located in the same class with the original method by default.
However, if some methods share the same signature and intend to set the same block handler,
then users can set the class where the block handler exists. Note that the block handler method
must be static.public abstract String fallback
Copyright © 2019 Alibaba Group. All rights reserved.