Package org.atmosphere.interceptor
Class PaddingAtmosphereInterceptor.ForcePreSuspend
- java.lang.Object
-
- org.atmosphere.cpr.AtmosphereResourceEventListenerAdapter
-
- org.atmosphere.interceptor.PaddingAtmosphereInterceptor.ForcePreSuspend
-
- All Implemented Interfaces:
AtmosphereResourceEventListener,AtmosphereResourceHeartbeatEventListener,AllowInterceptor
- Enclosing class:
- PaddingAtmosphereInterceptor
public final class PaddingAtmosphereInterceptor.ForcePreSuspend extends AtmosphereResourceEventListenerAdapter implements AllowInterceptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.atmosphere.cpr.AtmosphereResourceEventListenerAdapter
AtmosphereResourceEventListenerAdapter.OnBroadcast, AtmosphereResourceEventListenerAdapter.OnClose, AtmosphereResourceEventListenerAdapter.OnDisconnect, AtmosphereResourceEventListenerAdapter.OnHeartbeat, AtmosphereResourceEventListenerAdapter.OnPreSuspend, AtmosphereResourceEventListenerAdapter.OnResume, AtmosphereResourceEventListenerAdapter.OnSuspend, AtmosphereResourceEventListenerAdapter.OnThrowable
-
-
Constructor Summary
Constructors Constructor Description ForcePreSuspend(AtmosphereResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonPreSuspend(AtmosphereResourceEvent event)Invoked when theAtmosphereResource.suspend()is in the process of being suspended but nothing has yet been written on the connection.-
Methods inherited from class org.atmosphere.cpr.AtmosphereResourceEventListenerAdapter
onBroadcast, onClose, onDisconnect, onHeartbeat, onResume, onSuspend, onThrowable
-
-
-
-
Constructor Detail
-
ForcePreSuspend
public ForcePreSuspend(AtmosphereResponse response)
-
-
Method Detail
-
onPreSuspend
public void onPreSuspend(AtmosphereResourceEvent event)
Description copied from interface:AtmosphereResourceEventListenerInvoked when theAtmosphereResource.suspend()is in the process of being suspended but nothing has yet been written on the connection. An implementation could configure the request's headers, flush some data, etc. during that stage.- Specified by:
onPreSuspendin interfaceAtmosphereResourceEventListener- Overrides:
onPreSuspendin classAtmosphereResourceEventListenerAdapter- Parameters:
event- aAtmosphereResourceEvent
-
-