com.rabbitmq.client.impl
public class DefaultExceptionHandler extends java.lang.Object implements ExceptionHandler
ExceptionHandler used by AMQConnection.| Constructor and Description |
|---|
DefaultExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleBlockedListenerException(Connection connection,
java.lang.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,
java.lang.Throwable exception,
java.lang.String what) |
void |
handleConfirmListenerException(Channel channel,
java.lang.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,
java.lang.Throwable exception,
java.lang.String what) |
void |
handleConsumerException(Channel channel,
java.lang.Throwable exception,
Consumer consumer,
java.lang.String consumerTag,
java.lang.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 |
handleFlowListenerException(Channel channel,
java.lang.Throwable exception)
Perform any required exception processing for the situation
when the driver thread for the connection has called a
FlowListener's handleFlow method, and that method has
thrown an exeption.
|
void |
handleReturnListenerException(Channel channel,
java.lang.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 |
handleUnexpectedConnectionDriverException(Connection conn,
java.lang.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.
|
public void handleUnexpectedConnectionDriverException(Connection conn, java.lang.Throwable exception)
ExceptionHandlerhandleUnexpectedConnectionDriverException in interface ExceptionHandlerconn - the Connection that caught the exceptionexception - the exception caught in the driver threadpublic void handleReturnListenerException(Channel channel, java.lang.Throwable exception)
ExceptionHandlerhandleReturnListenerException in interface ExceptionHandlerchannel - the ChannelN that held the ReturnListenerexception - the exception thrown by ReturnListener.handleReturnpublic void handleFlowListenerException(Channel channel, java.lang.Throwable exception)
ExceptionHandlerhandleFlowListenerException in interface ExceptionHandlerchannel - the ChannelN that held the FlowListenerexception - the exception thrown by FlowListener.handleFlowpublic void handleConfirmListenerException(Channel channel, java.lang.Throwable exception)
ExceptionHandlerhandleConfirmListenerException in interface ExceptionHandlerchannel - the ChannelN that held the ConfirmListenerexception - the exception thrown by ConfirmListener.handleAckpublic void handleBlockedListenerException(Connection connection, java.lang.Throwable exception)
ExceptionHandlerhandleBlockedListenerException in interface ExceptionHandlerconnection - the Connection that held the BlockedListenerexception - the exception thrown by the BlockedListenerpublic void handleConsumerException(Channel channel, java.lang.Throwable exception, Consumer consumer, java.lang.String consumerTag, java.lang.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 exceptionprotected void handleChannelKiller(Channel channel, java.lang.Throwable exception, java.lang.String what)
protected void handleConnectionKiller(Connection connection, java.lang.Throwable exception, java.lang.String what)