Class RateLimitingInterceptor

java.lang.Object
org.atmosphere.cpr.AtmosphereInterceptorAdapter
org.atmosphere.interceptor.RateLimitingInterceptor
All Implemented Interfaces:
AtmosphereInterceptor, AtmosphereConfigAware, InvokationOrder

public class RateLimitingInterceptor extends AtmosphereInterceptorAdapter
Per-client rate-limiting interceptor using a token-bucket algorithm. Configurable via org.atmosphere.rateLimit.maxMessages, org.atmosphere.rateLimit.windowSeconds, and org.atmosphere.rateLimit.policy (drop or disconnect).
Since:
4.0