Class EndpointMessageListener

java.lang.Object
org.apache.camel.component.springrabbit.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
  • Constructor Summary

    Constructors
    Constructor
    Description
    EndpointMessageListener(SpringRabbitMQConsumer consumer, SpringRabbitMQEndpoint endpoint, org.apache.camel.Processor processor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.camel.Exchange
    createExchange(org.springframework.amqp.core.Message message, com.rabbitmq.client.Channel channel, Object replyDestination)
     
    org.springframework.amqp.rabbit.core.RabbitTemplate
     
    boolean
     
    boolean
     
    void
    onMessage(org.springframework.amqp.core.Message message, com.rabbitmq.client.Channel channel)
     
    void
    setAsync(boolean async)
    Sets whether asynchronous routing is enabled.
    void
    setDisableReplyTo(boolean disableReplyTo)
     
    void
    setTemplate(org.springframework.amqp.rabbit.core.RabbitTemplate template)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener

    onMessage, onMessageBatch

    Methods inherited from interface org.springframework.amqp.core.MessageListener

    containerAckMode, isAsyncReplies, onMessageBatch
  • Constructor Details

  • Method Details

    • 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)