Package com.adaptris.core
Interface ConnectionErrorHandler
- All Superinterfaces:
ComponentLifecycle
- All Known Implementing Classes:
ActiveJmsConnectionErrorHandler,ChannelCloseErrorHandler,ConnectionErrorHandlerImp,JmsConnectionErrorHandler,JmsConnectionErrorHandlerImpl,NullConnectionErrorHandler
Implementations of this class encapsualte behaviour that is invoked when an
Exception relating to a connection is encountered.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIs this error handler allowed to work with this error handler.voidHandle the error.voidregisterConnection(AdaptrisConnection connection) Sets theAdaptrisConnectionto handle errors for.<T> TretrieveConnection(Class<T> type) Return this components underlying connection.Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stop
-
Method Details
-
registerConnection
Sets the
AdaptrisConnectionto handle errors for.- Parameters:
connection- theAdaptrisConnectionto handle errors for
-
retrieveConnection
Return this components underlying connection.- Parameters:
type- the type of connection- Returns:
- the connection
-
allowedInConjunctionWith
Is this error handler allowed to work with this error handler.- Parameters:
ceh- other error handler.- Returns:
- true if the two error handlers can work together.
-
handleConnectionException
void handleConnectionException()Handle the error.
-