- java.lang.Object
-
- com.rabbitmq.jms.client.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
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultReplyToStrategyINSTANCEAn instance of the strategy to avoid having to create multiple copies of the object.-
Fields inherited from interface com.rabbitmq.jms.client.ReplyToStrategy
DIRECT_REPLY_TO
-
-
Constructor Summary
Constructors Constructor Description DefaultReplyToStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleReplyTo(jakarta.jms.Message message, java.lang.String replyTo)Handles the reply to on a received message.
-
-
-
Field Detail
-
INSTANCE
public static final DefaultReplyToStrategy INSTANCE
An instance of the strategy to avoid having to create multiple copies of the object.
-
-
Method Detail
-
handleReplyTo
public void handleReplyTo(jakarta.jms.Message message, java.lang.String replyTo) throws jakarta.jms.JMSExceptionHandles the reply to on a received message.- Specified by:
handleReplyToin interfaceReplyToStrategy- 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
-
-