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
All Methods Instance Methods Concrete Methods 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
getTemplate()
boolean
isAsync()
boolean
isDisableReplyTo()
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
-
-
-
-
Constructor Detail
-
EndpointMessageListener
public EndpointMessageListener(SpringRabbitMQConsumer consumer, SpringRabbitMQEndpoint endpoint, org.apache.camel.Processor processor)
-
-
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 theExchange
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 interfaceorg.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)
-
-