|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void onConnecting()
void onStreaming()
void onPolling()
void onStalled()
void onDisconnected()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |