Class AlwaysRestartExceptionHandler

All Implemented Interfaces:
ComponentLifecycle, ConnectionErrorHandler, com.rabbitmq.client.ExceptionHandler

@ComponentProfile(summary="When RabbitMQ reports an exception, always restart", recommended=RabbitMqConnection.class, since="4.3.0") public class AlwaysRestartExceptionHandler extends ExceptionHandlerImpl
ConnectionErrorHandler implementation which always restarts whenever an error is encounted.
  • Constructor Details

    • AlwaysRestartExceptionHandler

      public AlwaysRestartExceptionHandler()
  • Method Details

    • handleUnexpectedConnectionDriverException

      public void handleUnexpectedConnectionDriverException(com.rabbitmq.client.Connection c, Throwable e)
    • handleReturnListenerException

      public void handleReturnListenerException(com.rabbitmq.client.Channel ch, Throwable e)
    • handleConfirmListenerException

      public void handleConfirmListenerException(com.rabbitmq.client.Channel ch, Throwable e)
    • handleBlockedListenerException

      public void handleBlockedListenerException(com.rabbitmq.client.Connection c, Throwable e)
    • handleConsumerException

      public void handleConsumerException(com.rabbitmq.client.Channel c, Throwable e, com.rabbitmq.client.Consumer consumer, String consumerTag, String methodName)
    • handleConnectionRecoveryException

      public void handleConnectionRecoveryException(com.rabbitmq.client.Connection c, Throwable e)
    • handleChannelRecoveryException

      public void handleChannelRecoveryException(com.rabbitmq.client.Channel ch, Throwable exception)
    • handleTopologyRecoveryException

      public void handleTopologyRecoveryException(com.rabbitmq.client.Connection c, com.rabbitmq.client.Channel ch, com.rabbitmq.client.TopologyRecoveryException e)