org.atmosphere.cpr
Interface AsyncSupportListener

All Known Implementing Classes:
AsyncSupportListenerAdapter

public interface AsyncSupportListener

A listener that can be used to track AsyncSupport events like SUSPEND, RESUME, TIMEOUT, DESTROYED and CLOSED

Author:
Jeanfrancois Arcand

Method Summary
 void onClose(AtmosphereRequest request, AtmosphereResponse response)
          Invoked when an AtmosphereResource gets closed.
 void onDestroyed(AtmosphereRequest request, AtmosphereResponse response)
          Invoked when an AtmosphereResource gets destroyed.
 void onResume(AtmosphereRequest request, AtmosphereResponse response)
          Invoked when an AtmosphereResource gets resumed.
 void onSuspend(AtmosphereRequest request, AtmosphereResponse response)
          Invoked when an AtmosphereResource gets suspended.
 void onTimeout(AtmosphereRequest request, AtmosphereResponse response)
          Invoked when an AtmosphereResource times out.
 

Method Detail

onSuspend

void onSuspend(AtmosphereRequest request,
               AtmosphereResponse response)
Invoked when an AtmosphereResource gets suspended.

Parameters:
request - an AtmosphereRequest
response - an AtmosphereResponse

onResume

void onResume(AtmosphereRequest request,
              AtmosphereResponse response)
Invoked when an AtmosphereResource gets resumed.

Parameters:
request - an AtmosphereRequest
response - an AtmosphereResponse

onTimeout

void onTimeout(AtmosphereRequest request,
               AtmosphereResponse response)
Invoked when an AtmosphereResource times out.

Parameters:
request - an AtmosphereRequest
response - an AtmosphereResponse

onClose

void onClose(AtmosphereRequest request,
             AtmosphereResponse response)
Invoked when an AtmosphereResource gets closed.

Parameters:
request - an AtmosphereRequest
response - an AtmosphereResponse

onDestroyed

void onDestroyed(AtmosphereRequest request,
                 AtmosphereResponse response)
Invoked when an AtmosphereResource gets destroyed.

Parameters:
request - an AtmosphereRequest
response - an AtmosphereResponse


Copyright © 2014. All Rights Reserved.