|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConnectionListener
Receives notifications of connection activity and errors. The notification sequence follows the pattern: [CE [SS (NB | DE | AW(true) AW(false) )* [AW(true)] [F1 | F2] C] ] where F1 and F1 represent the two versions of onFailure(). A distinct listener must be used for any distinct connection opened.
| Method Summary | |
|---|---|
void |
onActivityWarning(boolean warningOn)
Notification that nothing has been received on the connection for more than a configured timeout. |
void |
onClose()
Notification of the closure of the Connection. |
void |
onConnectionEstablished()
Notification of the opening of the connection to the Server. |
void |
onDataError(PushServerException e)
Notification that a block of data received from the Server could not be correctly interpreted. |
void |
onFailure(PushConnException e)
Notification of the closure of the Connection because of a connection problem. |
void |
onFailure(PushServerException e)
Notification of the closure of the Connection because of an unrecoverable error in data coming from the Server. |
void |
onNewBytes(long bytes)
Notification of the reception of some data bytes from the Server, for statistical purposes. |
void |
onSessionStarted()
Notification that a session has been started by the Server on the connection. |
| Method Detail |
|---|
void onConnectionEstablished()
void onSessionStarted()
void onNewBytes(long bytes)
bytes - Number of data bytes received.void onDataError(PushServerException e)
e - Exception that describes the problem occurred.void onActivityWarning(boolean warningOn)
warningOn - if true, issues the warning; otherwise resets
a previously issued warning.void onClose()
void onFailure(PushServerException e)
e - Exception that describes the problem occurred.void onFailure(PushConnException e)
e - Exception that describes the problem occurred.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||