Class ConditionalRejectingErrorHandler

    • Field Detail

      • logger

        protected final Log logger
    • Method Detail

      • isDiscardFatalsWithXDeath

        protected boolean isDiscardFatalsWithXDeath()
        Return the discardFatalsWithXDeath.
        Returns:
        the discardFatalsWithXDeath.
        Since:
        2.3
        See Also:
        setDiscardFatalsWithXDeath(boolean)
      • setDiscardFatalsWithXDeath

        public void setDiscardFatalsWithXDeath​(boolean discardFatalsWithXDeath)
        Set to false to disable the (now) default behavior of logging and discarding messages that cause fatal exceptions and have an `x-death` header; which usually means that the message has been republished after previously being sent to a DLQ.
        Parameters:
        discardFatalsWithXDeath - false to disable.
        Since:
        2.1
      • isRejectManual

        protected boolean isRejectManual()
        Return the rejectManual.
        Returns:
        the rejectManual.
        Since:
        2.3
        See Also:
        setRejectManual(boolean)
      • setRejectManual

        public void setRejectManual​(boolean rejectManual)
        Set to false to NOT reject a fatal message when MANUAL ack mode is being used.
        Parameters:
        rejectManual - false to leave the message in an unack'd state.
        Since:
        2.1.9
      • getExceptionStrategy

        protected FatalExceptionStrategy getExceptionStrategy()
        Return the exception strategy.
        Returns:
        the strategy.
        Since:
        2.3
      • handleDiscarded

        protected void handleDiscarded​(Message failed)
        Called when a message with a fatal exception has an x-death header, prior to discarding the message. Subclasses can override this method to perform some action, such as sending the message to a parking queue.
        Parameters:
        failed - the failed message.
        Since:
        2.3
      • log

        protected void log​(Throwable t)
        Log the throwable at WARN level, including stack trace. Subclasses can override this behavior.
        Parameters:
        t - the Throwable.
        Since:
        1.7.8