All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rabbitmq.jms.client.ReplyToStrategy Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2016-2023 Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
package com.rabbitmq.jms.client;

import jakarta.jms.JMSException;
import jakarta.jms.Message;
import java.io.Serializable;

/**
 * Interface to provide a pluggable mechanism for dealing with messages received with a reply-to
 * queue specified.  Implementations of this interface should update the message's JMSReplyTo
 * property directly.
 *
 * @since 2.9.0
 */
public interface ReplyToStrategy extends Serializable {

  String DIRECT_REPLY_TO = "amq.rabbitmq.reply-to";

  /**
   * Handles the reply to on a received message.
   *
   * @param message The RMQMessage that has been received.
   * @param replyTo The reply to queue value received.
   * @throws JMSException if there's an issue updating the RMQMessage
   */
  void handleReplyTo(Message message, String replyTo) throws JMSException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy