|
|||||||||
| 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.
| Method Summary | |
|---|---|
void |
onBufferFull()
Notification that the local buffer is full and no more data will be read until the buffer is empty. |
void |
onClientError(java.lang.String error)
Notification of a Client error. |
void |
onServerError(java.lang.String error)
Notification that the Server has refused a connection request because of the constraints imposed by the Metadata Adapter or by Server configuration. |
void |
onStatusChange(java.lang.String newStatus)
Notification of each time the client status has changed. |
| Method Detail |
|---|
void onStatusChange(java.lang.String newStatus)
newStatus - The current client status. It can be one of the following values:LSClient.getStatus()void onBufferFull()
LSClient.setBufferMax(int),
LSClient.setMaxBandwidth(int),
SimpleTableInfo.setRequestedMaxFrequency(int)void onServerError(java.lang.String error)
error - A string representing the error sent by the server;
the string message is prefixed by a Server originated error code,
to be disaggregated in a future release of the library.SimpleTableListener.onControlError(java.lang.String),
ExtendedTableListener.onControlError(java.lang.String),
HandyTableListener.onControlError(int, java.lang.String),
LSClient.useSingleConnection(boolean)void onClientError(java.lang.String error)
ConnectionListener, SimpleTableListener,
ExtendedTableListener, HandyTableListener)
(note that this method is the only one not wrapped, so an exception
thrown by this method could block the entire client).ConnectionPolicy.setRetryTimeout(int).
In any other cases of unsuccessful requests to the Server,
no further attempts will be performed.
The notification is only provided for diagnostic purposes;
it is not meant as a way to make specific recovery actions possible.
error - A string representing the error occurred.LSClient.setBandwidthUnlimited(),
LSClient.setMaxBandwidth(int),
LSClient.sendMessage(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||