Class DefaultReplyToStrategy

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

    public class DefaultReplyToStrategy
    extends java.lang.Object
    implements ReplyToStrategy
    Default implementation of the reply-to strategy. This will ensure that any reply to queues using the amq.rabbitmq.reply-to. are correctly created.
    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 DefaultReplyToStrategy INSTANCE
        An instance of the strategy to avoid having to create multiple copies of the object.
    • Constructor Detail

      • DefaultReplyToStrategy

        public DefaultReplyToStrategy()
    • 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