Class EndpointMessageListener

  • All Implemented Interfaces:
    org.springframework.amqp.core.MessageListener, org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener

    public class EndpointMessageListener
    extends Object
    implements org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener
    • Method Detail

      • isAsync

        public boolean isAsync()
      • setAsync

        public void setAsync​(boolean async)
        Sets whether asynchronous routing is enabled.

        By default this is false. If configured as true then this listener will process the Exchange asynchronous.

      • isDisableReplyTo

        public boolean isDisableReplyTo()
      • setDisableReplyTo

        public void setDisableReplyTo​(boolean disableReplyTo)
      • getTemplate

        public org.springframework.amqp.rabbit.core.RabbitTemplate getTemplate()
      • setTemplate

        public void setTemplate​(org.springframework.amqp.rabbit.core.RabbitTemplate template)
      • onMessage

        public void onMessage​(org.springframework.amqp.core.Message message,
                              com.rabbitmq.client.Channel channel)
                       throws Exception
        Specified by:
        onMessage in interface org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener
        Throws:
        Exception
      • createExchange

        protected org.apache.camel.Exchange createExchange​(org.springframework.amqp.core.Message message,
                                                           com.rabbitmq.client.Channel channel,
                                                           Object replyDestination)