Package org.atmosphere.cpr
Class AsyncSupportListenerAdapter
- java.lang.Object
-
- org.atmosphere.cpr.AsyncSupportListenerAdapter
-
- All Implemented Interfaces:
AsyncSupportListener
public class AsyncSupportListenerAdapter extends java.lang.Object implements AsyncSupportListener
A default implementation ofAsyncSupportListener- Author:
- Jeanfrancois Arcand
-
-
Constructor Summary
Constructors Constructor Description AsyncSupportListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonClose(AtmosphereRequest request, AtmosphereResponse response)Invoked when anAtmosphereResourcegets closed.voidonDestroyed(AtmosphereRequest request, AtmosphereResponse response)Invoked when anAtmosphereResourcegets destroyed.voidonResume(AtmosphereRequest request, AtmosphereResponse response)Invoked when anAtmosphereResourcegets resumed.voidonSuspend(AtmosphereRequest request, AtmosphereResponse response)Invoked when anAtmosphereResourcegets suspended.voidonTimeout(AtmosphereRequest request, AtmosphereResponse response)Invoked when anAtmosphereResourcetimes out.
-
-
-
Method Detail
-
onSuspend
public void onSuspend(AtmosphereRequest request, AtmosphereResponse response)
Description copied from interface:AsyncSupportListenerInvoked when anAtmosphereResourcegets suspended.- Specified by:
onSuspendin interfaceAsyncSupportListener- Parameters:
request- anAtmosphereRequestresponse- anAtmosphereResponse
-
onResume
public void onResume(AtmosphereRequest request, AtmosphereResponse response)
Description copied from interface:AsyncSupportListenerInvoked when anAtmosphereResourcegets resumed.- Specified by:
onResumein interfaceAsyncSupportListener- Parameters:
request- anAtmosphereRequestresponse- anAtmosphereResponse
-
onTimeout
public void onTimeout(AtmosphereRequest request, AtmosphereResponse response)
Description copied from interface:AsyncSupportListenerInvoked when anAtmosphereResourcetimes out.- Specified by:
onTimeoutin interfaceAsyncSupportListener- Parameters:
request- anAtmosphereRequestresponse- anAtmosphereResponse
-
onClose
public void onClose(AtmosphereRequest request, AtmosphereResponse response)
Description copied from interface:AsyncSupportListenerInvoked when anAtmosphereResourcegets closed.- Specified by:
onClosein interfaceAsyncSupportListener- Parameters:
request- anAtmosphereRequestresponse- anAtmosphereResponse
-
onDestroyed
public void onDestroyed(AtmosphereRequest request, AtmosphereResponse response)
Description copied from interface:AsyncSupportListenerInvoked when anAtmosphereResourcegets destroyed.- Specified by:
onDestroyedin interfaceAsyncSupportListener- Parameters:
request- anAtmosphereRequestresponse- anAtmosphereResponse
-
-