Class AsyncRabbitTemplate

    • Field Detail

      • DEFAULT_RECEIVE_TIMEOUT

        public static final int DEFAULT_RECEIVE_TIMEOUT
        See Also:
        Constant Field Values
    • Constructor Detail

      • AsyncRabbitTemplate

        public AsyncRabbitTemplate​(ConnectionFactory connectionFactory,
                                   java.lang.String exchange,
                                   java.lang.String routingKey,
                                   java.lang.String replyQueue)
        Construct an instance using the provided arguments. Replies will be routed to the default exchange using the reply queue name as the routing key.
        Parameters:
        connectionFactory - the connection factory.
        exchange - the default exchange to which requests will be sent.
        routingKey - the default routing key.
        replyQueue - the name of the reply queue to listen for replies.
      • AsyncRabbitTemplate

        public AsyncRabbitTemplate​(ConnectionFactory connectionFactory,
                                   java.lang.String exchange,
                                   java.lang.String routingKey,
                                   java.lang.String replyQueue,
                                   java.lang.String replyAddress)
        Construct an instance using the provided arguments. If 'replyAddress' is null, replies will be routed to the default exchange using the reply queue name as the routing key. Otherwise it should have the form exchange/routingKey and must cause messages to be routed to the reply queue.
        Parameters:
        connectionFactory - the connection factory.
        exchange - the default exchange to which requests will be sent.
        routingKey - the default routing key.
        replyQueue - the name of the reply queue to listen for replies.
        replyAddress - the reply address (exchange/routingKey).
      • AsyncRabbitTemplate

        public AsyncRabbitTemplate​(RabbitTemplate template,
                                   AbstractMessageListenerContainer container,
                                   java.lang.String replyAddress)
        Construct an instance using the provided arguments. The first queue the container is configured to listen to will be used as the reply queue. If 'replyAddress' is null, replies will be routed using the default exchange with that queue name as the routing key. Otherwise it should have the form exchange/routingKey and must cause messages to be routed to the reply queue.
        Parameters:
        template - a RabbitTemplate.
        container - a AbstractMessageListenerContainer.
        replyAddress - the reply address.
      • AsyncRabbitTemplate

        public AsyncRabbitTemplate​(ConnectionFactory connectionFactory,
                                   java.lang.String exchange,
                                   java.lang.String routingKey)
        Construct an instance using the provided arguments. "Direct replyTo" is used for replies.
        Parameters:
        connectionFactory - the connection factory.
        exchange - the default exchange to which requests will be sent.
        routingKey - the default routing key.
        Since:
        2.0
      • AsyncRabbitTemplate

        public AsyncRabbitTemplate​(RabbitTemplate template)
        Construct an instance using the provided arguments. "Direct replyTo" is used for replies.
        Parameters:
        template - a RabbitTemplate
        Since:
        2.0