public class RelaxedExceptionHandler
extends com.rabbitmq.client.impl.DefaultExceptionHandler
DefaultExceptionHandler that logs
network exceptions as info instead of warn.
Connections opened by PerfTest can be blocked, especially producer connections. On shutdown, they may take some time to close, so PerfTest closes the connection with a timeout. This can result in noisy logs, which are not useful here, so this exception handler is a bit more relaxed for those logs.
This exception handler is also less noisy with AlreadyClosedException,
which can typically happen on shutdown or during connection recovery.
| Constructor and Description |
|---|
RelaxedExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
log(java.lang.String message,
java.lang.Throwable e) |
handleBlockedListenerException, handleChannelKiller, handleChannelKiller, handleConfirmListenerException, handleConsumerException, handleReturnListenerExceptionhandleChannelRecoveryException, handleConnectionKiller, handleConnectionRecoveryException, handleTopologyRecoveryException, handleUnexpectedConnectionDriverExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleBlockedListenerException, handleChannelRecoveryException, handleConfirmListenerException, handleConnectionRecoveryException, handleConsumerException, handleReturnListenerException, handleTopologyRecoveryException, handleUnexpectedConnectionDriverExceptionCopyright © 2022 Pivotal Software, Inc.. All rights reserved.