Class GraphQLRateLimitAspect

java.lang.Object
com.rale4j.sb.graphql.GraphQLRateLimitAspect

@Component public class GraphQLRateLimitAspect extends Object
Aspect for enforcing rate limits on GraphQL resolver methods.
  • Constructor Details

    • GraphQLRateLimitAspect

      public GraphQLRateLimitAspect()
  • Method Details

    • enforceRateLimit

      public Object enforceRateLimit(org.aspectj.lang.ProceedingJoinPoint joinPoint, Rale4j rale4j) throws Throwable
      Intercepts GraphQL resolver methods 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