Package interlok.rabbitmq
Class AlwaysRestartExceptionHandler
java.lang.Object
com.adaptris.core.ConnectionErrorHandlerImp
interlok.rabbitmq.ExceptionHandlerImpl
interlok.rabbitmq.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.-
Field Summary
Fields inherited from class com.adaptris.core.ConnectionErrorHandlerImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleBlockedListenerException(com.rabbitmq.client.Connection c, Throwable e) voidhandleChannelRecoveryException(com.rabbitmq.client.Channel ch, Throwable exception) voidhandleConfirmListenerException(com.rabbitmq.client.Channel ch, Throwable e) voidhandleConnectionRecoveryException(com.rabbitmq.client.Connection c, Throwable e) voidhandleConsumerException(com.rabbitmq.client.Channel c, Throwable e, com.rabbitmq.client.Consumer consumer, String consumerTag, String methodName) voidhandleReturnListenerException(com.rabbitmq.client.Channel ch, Throwable e) voidhandleTopologyRecoveryException(com.rabbitmq.client.Connection c, com.rabbitmq.client.Channel ch, com.rabbitmq.client.TopologyRecoveryException e) voidhandleUnexpectedConnectionDriverException(com.rabbitmq.client.Connection c, Throwable e) Methods inherited from class interlok.rabbitmq.ExceptionHandlerImpl
handleConnectionException, registerConnectionMethods inherited from class com.adaptris.core.ConnectionErrorHandlerImp
allowedInConjunctionWith, getRegisteredChannels, restartAffectedComponents, retrieveConnection, retryWaitTimeMsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stop
-
Constructor Details
-
AlwaysRestartExceptionHandler
public AlwaysRestartExceptionHandler()
-
-
Method Details
-
handleUnexpectedConnectionDriverException
public void handleUnexpectedConnectionDriverException(com.rabbitmq.client.Connection c, Throwable e) -
handleReturnListenerException
-
handleConfirmListenerException
-
handleBlockedListenerException
-
handleConsumerException
-
handleConnectionRecoveryException
-
handleChannelRecoveryException
-
handleTopologyRecoveryException
public void handleTopologyRecoveryException(com.rabbitmq.client.Connection c, com.rabbitmq.client.Channel ch, com.rabbitmq.client.TopologyRecoveryException e)
-