com.lightstreamer.ls_proxy
Interface PushStatusListener


public interface PushStatusListener

Receives asynchronous notifications for connection status changes. After initializing an LSProxy object, with the status implicitly set as Disconnected, the status notification sequence follows the pattern:

(C [(S (L S)* [L]) | (P (L P)* [L])] D)*

where Stalled is represented by L.
The listener is called directly from the worker threads. The method implementations should be fast and nonblocking. Any slow operations should be enqueued and performed asynchronously.


Method Summary
 void onConnecting()
          Notifies that a connection attempt has started.
 void onDisconnected()
          Notifies that the current connection has closed or that the current connection attempt has been abandoned.
 void onPolling()
          If the current status is "Connecting", notifies that the connection attempt has been successful and a series of poll connections has thus started.
 void onStalled()
          Notifies that no data has been coming from a connection for a time greater that a configured threshold.
 void onStreaming()
          If the current status is "Connecting", notifies that the connection attempt has been successful and streaming on the connection is started.
 

Method Detail

onConnecting

void onConnecting()
Notifies that a connection attempt has started.


onStreaming

void onStreaming()
If the current status is "Connecting", notifies that the connection attempt has been successful and streaming on the connection is started. If, however, the current status is "Stalled", notifies that the data flow has been restored.


onPolling

void onPolling()
If the current status is "Connecting", notifies that the connection attempt has been successful and a series of poll connections has thus started. If, however, the current status is "Stalled", notifies that the polling data flow has been restored.


onStalled

void onStalled()
Notifies that no data has been coming from a connection for a time greater that a configured threshold.


onDisconnected

void onDisconnected()
Notifies that the current connection has closed or that the current connection attempt has been abandoned.