ie.ncl.msg
Interface ErrorListener
- All Known Implementing Classes:
- ConnectionManager
public interface ErrorListener
This interface is used to notify the application of
errors that occur in an underlying messaging connection.
This should be set before the connection is initiated.
The connection error callback is called in 1 of the 3 scenarios
- The connection with the server is closed and an attempt will not be made
to reconnect. In this case the exception will be of type ConnectionException.
The status of the connection will be NOT_CONNECTED
- The connection with the server is lost but an attempt will be made to
reconnect. In this scenario the exception will be of type TemporaryConnectionException.
(This replaces the deprecated ReconnectException.) The status of the connection will be
RECONNECTING.
- The connection with the server has been recovered.
In this scenario the exception will be of type TemporaryConnectionException.
(This replaces the deprecated ReconnectException.) The status of the connection will be
CONNECTED.
Temporary connections serve to notify the application that the connection
is down temporarily and recovery will be attempted. API Calls to sent and receive
messages can continue as normal without being impacted. (Messages are typically
queued by the underlying implementation until the connection is resumed.)
- See Also:
Connection.setErrorListener(ie.ncl.msg.ErrorListener)
,
Connection.NOT_CONNECTED
,
Connection.RECONNECTING
,
Connection.CONNECTED
,
ConnectionException
,
TemporaryConnectionException
,
ReconnectException
connectionError
void connectionError(Connection con,
ConnectionException ex)