Class AmqpInboundChannelAdapter.Listener
java.lang.Object
org.springframework.integration.amqp.inbound.AmqpInboundChannelAdapter.Listener
- All Implemented Interfaces:
org.springframework.amqp.core.MessageListener, org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener
- Direct Known Subclasses:
AmqpInboundChannelAdapter.BatchListener
- Enclosing class:
AmqpInboundChannelAdapter
protected class AmqpInboundChannelAdapter.Listener
extends Object
implements org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener
- Since:
- 2.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.springframework.amqp.support.converter.MessageConverterprotected final booleanprotected final @Nullable org.springframework.integration.core.RecoveryCallback<?> protected final @Nullable org.springframework.core.retry.RetryOperations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectconvertPayload(org.springframework.amqp.core.Message message) protected org.springframework.messaging.Message<Object> createMessageFromAmqp(org.springframework.amqp.core.Message message, @Nullable com.rabbitmq.client.Channel channel) protected org.springframework.messaging.Message<Object> createMessageFromPayload(Object payload, @Nullable com.rabbitmq.client.Channel channel, Map<String, @Nullable Object> headers, long deliveryTag, @Nullable List<Map<String, @Nullable Object>> listHeaders) voidonMessage(org.springframework.amqp.core.Message message, @Nullable com.rabbitmq.client.Channel channel) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener
onMessage, onMessageBatchMethods inherited from interface org.springframework.amqp.core.MessageListener
containerAckMode, isAsyncReplies, onMessageBatch
-
Field Details
-
converter
protected final org.springframework.amqp.support.converter.MessageConverter converter -
manualAcks
protected final boolean manualAcks -
retryOps
protected final @Nullable org.springframework.core.retry.RetryOperations retryOps -
recoverer
protected final @Nullable org.springframework.integration.core.RecoveryCallback<?> recoverer
-
-
Constructor Details
-
Listener
protected Listener()
-
-
Method Details
-
onMessage
public void onMessage(org.springframework.amqp.core.Message message, @Nullable com.rabbitmq.client.Channel channel) - Specified by:
onMessagein interfaceorg.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener
-
createMessageFromAmqp
protected org.springframework.messaging.Message<Object> createMessageFromAmqp(org.springframework.amqp.core.Message message, @Nullable com.rabbitmq.client.Channel channel) -
convertPayload
-
createMessageFromPayload
-