Class DiscardingDeadLetterStrategy

    • Constructor Detail

      • DiscardingDeadLetterStrategy

        public DiscardingDeadLetterStrategy()
    • Method Detail

      • isSendToDeadLetterQueue

        public boolean isSendToDeadLetterQueue​(org.apache.activemq.command.Message message)
        Description copied from interface: DeadLetterStrategy
        Allow pluggable strategy for deciding if message should be sent to a dead letter queue for example, you might not want to ignore expired or non-persistent messages
        Specified by:
        isSendToDeadLetterQueue in interface DeadLetterStrategy
        Overrides:
        isSendToDeadLetterQueue in class AbstractDeadLetterStrategy
        Returns:
        true if message should be sent to a dead letter queue