Class SuspendTrackerInterceptor

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

public class SuspendTrackerInterceptor extends AtmosphereInterceptorAdapter
An interceptor that keep track of AtmosphereResource.uuid() and disable invocation of AtmosphereResourceEventListenerAdapter.onSuspend(org.atmosphere.cpr.AtmosphereResourceEvent) and AtmosphereResourceEventListenerAdapter.onPreSuspend(org.atmosphere.cpr.AtmosphereResourceEvent)

When used, the onSuspend will be only called ONCE for every transport, when the first request is made.
Author:
Jeanfrancois Arcand