public abstract class MessageQueueReceiverEndpoint extends MessageReceiverEndpoint
MessageEndpoint endpoint of a Message Channel with Queue or FIFO semantics.
| Constructor and Description |
|---|
MessageQueueReceiverEndpoint(java.lang.String channelName,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
consume()
Takes zero or more messages from the channel, calls
MessageEndpoint.intercept(Message) for every message, and notifies
the registered consumers with the intercepted message, or drops the message, if intercept returns null. |
getEndpointType, getMessageDispatcher, registergetChannelName, getInterceptorChain, intercept, registerInterceptorsFrompublic MessageQueueReceiverEndpoint(@Nonnull
java.lang.String channelName,
@Nonnull
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public abstract void consume()
MessageEndpoint.intercept(Message) for every message, and notifies
the registered consumers with the intercepted message, or drops the message, if intercept returns null.
Consumption starts with the earliest available and not-yet-consumed message and finishes when either the
stopCondition is met, or the application is shutting down.
The registered consumers are used as a
callback for consumed messages. A MessageDispatcher can be used as a consumer, if multiple
consumers, or consumers with message payloads other than String are
required.