java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.MessageDeliveryErrorHandler.NeverRetry
All Implemented Interfaces:
MessageDeliveryErrorHandler
Enclosing interface:
MessageDeliveryErrorHandler

public static class MessageDeliveryErrorHandler.NeverRetry extends Object implements MessageDeliveryErrorHandler
  • Constructor Details

    • NeverRetry

      public NeverRetry()
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object