Package org.atmosphere.cpr
Interface AsyncSupportListener
-
- All Known Implementing Classes:
AsyncSupportListenerAdapter
public interface AsyncSupportListenerA listener that can be used to trackAsyncSupportevents like SUSPEND, RESUME, TIMEOUT, DESTROYED and CLOSED- Author:
- Jeanfrancois Arcand
-
-
Method Summary
All Methods Instance Methods Abstract 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
void onSuspend(AtmosphereRequest request, AtmosphereResponse response)
Invoked when anAtmosphereResourcegets suspended.- Parameters:
request- anAtmosphereRequestresponse- anAtmosphereResponse
-
onResume
void onResume(AtmosphereRequest request, AtmosphereResponse response)
Invoked when anAtmosphereResourcegets resumed.- Parameters:
request- anAtmosphereRequestresponse- anAtmosphereResponse
-
onTimeout
void onTimeout(AtmosphereRequest request, AtmosphereResponse response)
Invoked when anAtmosphereResourcetimes out.- Parameters:
request- anAtmosphereRequestresponse- anAtmosphereResponse
-
onClose
void onClose(AtmosphereRequest request, AtmosphereResponse response)
Invoked when anAtmosphereResourcegets closed.- Parameters:
request- anAtmosphereRequestresponse- anAtmosphereResponse
-
onDestroyed
void onDestroyed(AtmosphereRequest request, AtmosphereResponse response)
Invoked when anAtmosphereResourcegets destroyed.- Parameters:
request- anAtmosphereRequestresponse- anAtmosphereResponse
-
-