public interface ConnectionErrorHandler extends ComponentLifecycle
Implementations of this class encapsualte behaviour that is invoked when an
Exception
relating to a connection is encountered.
Modifier and Type | Method and Description |
---|---|
boolean |
allowedInConjunctionWith(ConnectionErrorHandler ceh)
Is this error handler allowed to work with this error handler.
|
void |
handleConnectionException()
Handle the error.
|
void |
registerConnection(AdaptrisConnection connection)
Sets the
AdaptrisConnection to handle errors for. |
<T> T |
retrieveConnection(java.lang.Class<T> type)
Return this components underlying connection.
|
close, init, start, stop
void registerConnection(AdaptrisConnection connection)
Sets the AdaptrisConnection
to handle errors for.
connection
- the AdaptrisConnection
to handle errors for<T> T retrieveConnection(java.lang.Class<T> type)
type
- the type of connectionboolean allowedInConjunctionWith(ConnectionErrorHandler ceh)
ceh
- other error handler.void handleConnectionException()