Class RateLimitAspect

java.lang.Object
com.rale4j.sb.enforcement.RateLimitAspect

@Component public class RateLimitAspect extends Object
Aspect for enforcing rate limits on methods annotated with Rale4j.
  • Field Details

  • Constructor Details

    • RateLimitAspect

      public RateLimitAspect()
  • Method Details

    • enforceRateLimit

      public Object enforceRateLimit(org.aspectj.lang.ProceedingJoinPoint joinPoint, Rale4j rale4j) throws Throwable
      Intercepts method calls annotated with Rale4j and enforces rate limits.
      Parameters:
      joinPoint - the join point representing the intercepted method
      rale4j - the Rale4j annotation
      Returns:
      the result of the intercepted method
      Throws:
      Throwable - if the rate limit is exceeded or an error occurs