public static interface DOFConnection.StateListener
Modifier and Type | Method and Description |
---|---|
void |
removed(DOFConnection connection,
DOFException exception)
This method will be called when the listener is removed from the connection.
|
void |
stateChanged(DOFConnection connection,
DOFConnection.State state)
This method will be called immediately when the listener
is added to the connection with the current state of the connection
(either "connected" or "!connected") and then will be called whenever
the state changes.
|
void stateChanged(DOFConnection connection, DOFConnection.State state)
connection
- The connection that has changed state. This will never be null.state
- The current state of the connection. This will never be null.void removed(DOFConnection connection, DOFException exception)
connection
- The connection the listener was removed from. This will never be null.exception
- The exception that caused the listener to be removed or null if it was removed normally.