public class StrictExceptionHandler extends ForgivingExceptionHandler implements ExceptionHandler
ExceptionHandler that does
close channels on unhandled consumer exception.
Used by AMQConnection.| Constructor and Description |
|---|
StrictExceptionHandler() |
| 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) |
protected void |
handleChannelKiller(Channel channel,
Throwable exception,
String logMessage,
String closeMessage) |
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.
|
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.
|
handleChannelRecoveryException, handleConnectionKiller, handleConnectionRecoveryException, handleTopologyRecoveryException, handleUnexpectedConnectionDriverException, logclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleChannelRecoveryException, handleConnectionRecoveryException, handleTopologyRecoveryException, handleUnexpectedConnectionDriverExceptionpublic void handleReturnListenerException(Channel channel, Throwable exception)
ExceptionHandlerhandleReturnListenerException in interface ExceptionHandlerhandleReturnListenerException in class ForgivingExceptionHandlerchannel - the ChannelN that held the ReturnListenerexception - the exception thrown by ReturnListener.handleReturnpublic void handleConfirmListenerException(Channel channel, Throwable exception)
ExceptionHandlerhandleConfirmListenerException in interface ExceptionHandlerhandleConfirmListenerException in class ForgivingExceptionHandlerchannel - the ChannelN that held the ConfirmListenerexception - the exception thrown by ConfirmListener.handleAckpublic void handleBlockedListenerException(Connection connection, Throwable exception)
ExceptionHandlerhandleBlockedListenerException in interface ExceptionHandlerhandleBlockedListenerException in class ForgivingExceptionHandlerconnection - 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 ExceptionHandlerhandleConsumerException in class ForgivingExceptionHandlerchannel - 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, Throwable exception, String what)
handleChannelKiller in class ForgivingExceptionHandlerCopyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.