|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionListener
An interface to react connection states.
| Method Summary | |
|---|---|
void |
onConnectionClosed(Connection connection)
This method is called if the connection has been closed. |
void |
onConnectionFailed(Connection connection,
Exception ex)
This method is called if an initial connection failed due to the socket being not available or through timeout. |
void |
onConnectionSuccessful(Connection connection)
This method is called if a connection to a robot has been established successfully. |
void |
onConnectionTimeout(Connection connection)
This method is called when the connection hasn't received data for the connection specific timeout. |
void |
onReceiveError(Connection connection,
Exception ex)
Called when an error occurred during the receiving of data. |
| Method Detail |
|---|
void onConnectionSuccessful(Connection connection)
connection - The Connection that has been connected successfully.
void onConnectionFailed(Connection connection,
Exception ex)
connection - The Connection that wasn't able to establish a connection..ex - An exception that indicates the failure reason.void onConnectionTimeout(Connection connection)
connection - The Connection that received a timeoutvoid onConnectionClosed(Connection connection)
connection - The Connection that has been closed.
void onReceiveError(Connection connection,
Exception ex)
connection - The Connection originating the error.ex - The exception that occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||