|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.comm.BaseConnectionListener
public class BaseConnectionListener
The corresponding adapter class for the ConnectionListener class that implements all event methods with an empty method body. You can derive a subclass of it and override only the event functions that you are interested in.
| Constructor Summary | |
|---|---|
BaseConnectionListener()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseConnectionListener()
| Method Detail |
|---|
public void onConnectionSuccessful(Connection connection)
ConnectionListener
onConnectionSuccessful in interface ConnectionListenerconnection - The Connection that has been connected successfully.public void onConnectionTimeout(Connection connection)
ConnectionListener
onConnectionTimeout in interface ConnectionListenerconnection - The Connection that received a timeout
public void onConnectionFailed(Connection connection,
Exception ex)
ConnectionListener
onConnectionFailed in interface ConnectionListenerconnection - The Connection that wasn't able to establish a connection..ex - An exception that indicates the failure reason.public void onConnectionClosed(Connection connection)
ConnectionListener
onConnectionClosed in interface ConnectionListenerconnection - The Connection that has been closed.
public void onReceiveError(Connection connection,
Exception ex)
ConnectionListener
onReceiveError in interface ConnectionListenerconnection - 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 | |||||||||