Class MessageDeliveryErrorHandler.AlwaysRetry

    • Constructor Detail

      • AlwaysRetry

        public AlwaysRetry()
    • Method Detail

      • isPermanentError

        public boolean isPermanentError​(QueuedMessage queuedMessage,
                                        Exception error)
        Description copied from interface: MessageDeliveryErrorHandler
        This method is called when the DurableQueueConsumer experiences an exception during Message delivery.
        The result of this method determines if the Message is instantly marked as a Poison-Message/Dead-Letter-Message or if we can attempt message redelivery according to the specified RedeliveryPolicy
        Specified by:
        isPermanentError in interface MessageDeliveryErrorHandler
        Parameters:
        queuedMessage - the message that failed to be delivered
        error - the error experienced
        Returns:
        true if the error is a permanent error - in which case the message is instantly marked as an Poison-Message/Dead-Letter-Message, otherwise false - in which case the message will be redelivered according to the specified RedeliveryPolicy