|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rabbitmq.client.impl.DefaultExceptionHandler
public class DefaultExceptionHandler
Default implementation of ExceptionHandler
used by AMQConnection
.
Constructor Summary | |
---|---|
DefaultExceptionHandler()
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExceptionHandler()
Method Detail |
---|
public void handleUnexpectedConnectionDriverException(Connection conn, java.lang.Throwable exception)
ExceptionHandler
handleUnexpectedConnectionDriverException
in interface ExceptionHandler
conn
- the Connection that caught the exceptionexception
- the exception caught in the driver threadpublic void handleReturnListenerException(Channel channel, java.lang.Throwable exception)
ExceptionHandler
handleReturnListenerException
in interface ExceptionHandler
channel
- the ChannelN that held the ReturnListenerexception
- the exception thrown by ReturnListener.handleReturnpublic void handleFlowListenerException(Channel channel, java.lang.Throwable exception)
ExceptionHandler
handleFlowListenerException
in interface ExceptionHandler
channel
- the ChannelN that held the FlowListenerexception
- the exception thrown by FlowListener.handleFlowpublic void handleConfirmListenerException(Channel channel, java.lang.Throwable exception)
ExceptionHandler
handleConfirmListenerException
in interface ExceptionHandler
channel
- the ChannelN that held the ConfirmListenerexception
- the exception thrown by ConfirmListener.handleAckpublic void handleConsumerException(Channel channel, java.lang.Throwable exception, Consumer consumer, java.lang.String consumerTag, java.lang.String methodName)
ExceptionHandler
handleConsumerException
in interface ExceptionHandler
channel
- 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |