Class WebSocketRateLimitAspect

java.lang.Object
com.rale4j.sb.websocket.WebSocketRateLimitAspect

@Component public class WebSocketRateLimitAspect extends Object
Aspect for enforcing rate limits on WebSocket messages.
  • Constructor Details

    • WebSocketRateLimitAspect

      public WebSocketRateLimitAspect()
  • Method Details

    • enforceRateLimit

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