Class HandleAnyReplyToStrategy

  • All Implemented Interfaces:
    ReplyToStrategy, java.io.Serializable

    public class HandleAnyReplyToStrategy
    extends java.lang.Object
    implements ReplyToStrategy
    Implementation of the reply to strategy that deals with any reply-to value received and will use the default, i.e. "", exchange. If the reply-to starts with "amq.rabbitmq.reply-to", this will correctly handle these types of temporary queues.
    Since:
    2.9.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleReplyTo​(jakarta.jms.Message message, java.lang.String replyTo)
      Handles the reply to on a received message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INSTANCE

        public static final HandleAnyReplyToStrategy INSTANCE
        An instance of the strategy to avoid having to create multiple copies of the object.
    • Constructor Detail

      • HandleAnyReplyToStrategy

        public HandleAnyReplyToStrategy()
    • Method Detail

      • handleReplyTo

        public void handleReplyTo​(jakarta.jms.Message message,
                                  java.lang.String replyTo)
                           throws jakarta.jms.JMSException
        Handles the reply to on a received message.
        Specified by:
        handleReplyTo in interface ReplyToStrategy
        Parameters:
        message - The RMQMessage that has been received.
        replyTo - The reply to queue value received.
        Throws:
        jakarta.jms.JMSException - if there's an issue updating the RMQMessage