Annotation Interface RequiresPolicy
@ExperimentalJSentinelApi
@Retention(RUNTIME)
@Target({TYPE,METHOD})
public @interface RequiresPolicy
Requires the named
Policy (registered with the resolved
PolicyRegistry) to Allow the current request.
A single annotation carries a single policy name. Combining algorithms (any-of / all-of) will be added later via a separate annotation to keep this contract stable.
-
Required Element Summary
Required Elements
-
Element Details
-
value
-