- java.lang.Object
-
- com.rabbitmq.jms.client.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
-
-
Field Summary
Fields Modifier and Type Field Description static HandleAnyReplyToStrategyINSTANCEAn 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 HandleAnyReplyToStrategy()
-
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 HandleAnyReplyToStrategy 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
-
-