org.atmosphere.gwt.client
Interface AtmosphereListener


public interface AtmosphereListener

Listens for events from a CometClient.

Author:
Richard Zschech

Method Summary
 void onAfterRefresh()
           
 void onBeforeDisconnected()
          Send just before the connection is stopped (this can happen also because the window is being closed)
 void onConnected(int heartbeat, int connectionID)
          The connection has been established
 void onDisconnected()
          The connection has disconnected and is being refreshed
 void onError(Throwable exception, boolean connected)
          A Comet error has occurred
 void onHeartbeat()
          The connection has received a heartbeat
 void onMessage(List<?> messages)
          A batch of messages has been received
 void onRefresh()
          The connection should be refreshed by the client
 

Method Detail

onConnected

void onConnected(int heartbeat,
                 int connectionID)
The connection has been established

Parameters:
heartbeat -

onBeforeDisconnected

void onBeforeDisconnected()
Send just before the connection is stopped (this can happen also because the window is being closed)


onDisconnected

void onDisconnected()
The connection has disconnected and is being refreshed


onError

void onError(Throwable exception,
             boolean connected)
A Comet error has occurred

Parameters:
exception -
connected -

onHeartbeat

void onHeartbeat()
The connection has received a heartbeat


onRefresh

void onRefresh()
The connection should be refreshed by the client


onAfterRefresh

void onAfterRefresh()

onMessage

void onMessage(List<?> messages)
A batch of messages has been received

Parameters:
messages -


Copyright © 2012. All Rights Reserved.