public class ForgivingExceptionHandler extends Object implements ExceptionHandler
ExceptionHandler that does not
close channels on unhandled consumer and listener exception.
Used by AMQConnection.| Constructor and Description |
|---|
ForgivingExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleBlockedListenerException(Connection connection,
Throwable exception)
Perform any required exception processing for the situation
when the driver thread for the connection has called a
BlockedListener's method, and that method has
thrown an exception.
|
protected void |
handleChannelKiller(Channel channel,
Throwable exception,
String what) |
void |
handleChannelRecoveryException(Channel ch,
Throwable exception)
Perform any required exception processing for the situation
when the driver thread for the connection has an exception
during channel recovery that it can't otherwise deal with.
|
void |
handleConfirmListenerException(Channel channel,
Throwable exception)
Perform any required exception processing for the situation
when the driver thread for the connection has called a
ConfirmListener's handleAck or handleNack method, and that
method has thrown an exception.
|
protected void |
handleConnectionKiller(Connection connection,
Throwable exception,
String what) |
void |
handleConnectionRecoveryException(Connection conn,
Throwable exception)
Perform any required exception processing for the situation
when the driver thread for the connection has an exception
during connection recovery that it can't otherwise deal with.
|
void |
handleConsumerException(Channel channel,
Throwable exception,
Consumer consumer,
String consumerTag,
String methodName)
Perform any required exception processing for the situation
when the driver thread for the connection has called a method
on a Consumer, and that method has thrown an exception.
|
void |
handleReturnListenerException(Channel channel,
Throwable exception)
Perform any required exception processing for the situation
when the driver thread for the connection has called a
ReturnListener's handleReturn method, and that method has
thrown an exception.
|
void |
handleTopologyRecoveryException(Connection conn,
Channel ch,
TopologyRecoveryException exception)
Perform any required exception processing for the situation
when the driver thread for the connection has an exception
during topology (exchanges, queues, bindings, consumers) recovery
that it can't otherwise deal with.
|
void |
handleUnexpectedConnectionDriverException(Connection conn,
Throwable exception)
Perform any required exception processing for the situation
when the driver thread for the connection has an exception
signalled to it that it can't otherwise deal with.
|
protected void |
log(String message,
Throwable e) |
public void handleUnexpectedConnectionDriverException(Connection conn, Throwable exception)
ExceptionHandlerhandleUnexpectedConnectionDriverException in interface ExceptionHandlerconn - the Connection that caught the exceptionexception - the exception caught in the driver threadpublic void handleReturnListenerException(Channel channel, Throwable exception)
ExceptionHandlerhandleReturnListenerException in interface ExceptionHandlerchannel - the ChannelN that held the ReturnListenerexception - the exception thrown by ReturnListener.handleReturnpublic void handleConfirmListenerException(Channel channel, Throwable exception)
ExceptionHandlerhandleConfirmListenerException in interface ExceptionHandlerchannel - the ChannelN that held the ConfirmListenerexception - the exception thrown by ConfirmListener.handleAckpublic void handleBlockedListenerException(Connection connection, Throwable exception)
ExceptionHandlerhandleBlockedListenerException in interface ExceptionHandlerconnection - the Connection that held the BlockedListenerexception - the exception thrown by the BlockedListenerpublic void handleConsumerException(Channel channel, Throwable exception, Consumer consumer, String consumerTag, String methodName)
ExceptionHandlerhandleConsumerException in interface ExceptionHandlerchannel - the ChannelN that held the Consumerexception - the exception thrown by the Consumerconsumer - the Consumer that caused the faultconsumerTag - the Consumer's consumerTagmethodName - the name of the method on the Consumer that threw the exceptionpublic void handleConnectionRecoveryException(Connection conn, Throwable exception)
ExceptionHandlerhandleConnectionRecoveryException in interface ExceptionHandlerconn - the Connection that caught the exceptionexception - the exception caught in the driver threadpublic void handleChannelRecoveryException(Channel ch, Throwable exception)
ExceptionHandlerhandleChannelRecoveryException in interface ExceptionHandlerch - the Channel that caught the exceptionexception - the exception caught in the driver threadpublic void handleTopologyRecoveryException(Connection conn, Channel ch, TopologyRecoveryException exception)
ExceptionHandlerhandleTopologyRecoveryException in interface ExceptionHandlerconn - the Connection that caught the exceptionch - the Channel that caught the exception. May be null.exception - the exception caught in the driver threadprotected void handleChannelKiller(Channel channel, Throwable exception, String what)
protected void handleConnectionKiller(Connection connection, Throwable exception, String what)
Copyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.