Interface ConnectionErrorHandler

All Superinterfaces:
ComponentLifecycle
All Known Implementing Classes:
ActiveJmsConnectionErrorHandler, ChannelCloseErrorHandler, ConnectionErrorHandlerImp, JmsConnectionErrorHandler, JmsConnectionErrorHandlerImpl, NullConnectionErrorHandler

public interface ConnectionErrorHandler extends ComponentLifecycle

Implementations of this class encapsualte behaviour that is invoked when an Exception relating to a connection is encountered.

  • Method Details

    • registerConnection

      void registerConnection(AdaptrisConnection connection)

      Sets the AdaptrisConnection to handle errors for.

      Parameters:
      connection - the AdaptrisConnection to handle errors for
    • retrieveConnection

      <T> T retrieveConnection(Class<T> type)
      Return this components underlying connection.
      Parameters:
      type - the type of connection
      Returns:
      the connection
    • allowedInConjunctionWith

      boolean allowedInConjunctionWith(ConnectionErrorHandler ceh)
      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.