public class RateLimiterAspect
extends java.lang.Object
implements org.springframework.core.Ordered
RateLimiter annotation.
The aspect protects an annotated method with a RateLimiter. The RateLimiterRegistry is used to retrieve an instance of a RateLimiter for
a specific backend.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RATE_LIMITER_RECEIVED |
| Constructor and Description |
|---|
RateLimiterAspect(io.github.resilience4j.ratelimiter.RateLimiterRegistry rateLimiterRegistry,
RateLimiterConfigurationProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
matchAnnotatedClassOrMethod(io.github.resilience4j.ratelimiter.annotation.RateLimiter rateLimiter)
Method used as pointcut
|
java.lang.Object |
rateLimiterAroundAdvice(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint,
io.github.resilience4j.ratelimiter.annotation.RateLimiter limitedService) |
public static final java.lang.String RATE_LIMITER_RECEIVED
public RateLimiterAspect(io.github.resilience4j.ratelimiter.RateLimiterRegistry rateLimiterRegistry,
RateLimiterConfigurationProperties properties)
public void matchAnnotatedClassOrMethod(io.github.resilience4j.ratelimiter.annotation.RateLimiter rateLimiter)
rateLimiter - - matched annotationpublic java.lang.Object rateLimiterAroundAdvice(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint,
io.github.resilience4j.ratelimiter.annotation.RateLimiter limitedService)
throws java.lang.Throwable
java.lang.Throwablepublic int getOrder()
getOrder in interface org.springframework.core.Ordered