public class MessageReceiverEndpoint extends MessageEndpoint
MessageEndpoint endpoint of a Message Channel
| Constructor and Description |
|---|
MessageReceiverEndpoint(java.lang.String channelName,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
org.springframework.context.ApplicationEventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
protected EndpointType |
getEndpointType() |
MessageDispatcher |
getMessageDispatcher()
Returns the MessageDispatcher that is used to dispatch messages.
|
protected void |
publishEvent(MessageReceiverStatus status,
java.lang.String message,
ChannelDurationBehind durationBehind) |
void |
register(MessageConsumer<?> messageConsumer)
Registers a MessageConsumer at the receiver endpoint.
|
getChannelName, getInterceptorChain, intercept, registerInterceptorsFrompublic MessageReceiverEndpoint(@Nonnull
java.lang.String channelName,
@Nonnull
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
@Nullable
org.springframework.context.ApplicationEventPublisher eventPublisher)
public final void register(MessageConsumer<?> messageConsumer)
consumers have to be thread safe as they might be called from multiple threads
in parallel (e.g. for kinesis streams there is one thread per shard).messageConsumer - registered EventConsumerpublic final MessageDispatcher getMessageDispatcher()
protected final EndpointType getEndpointType()
getEndpointType in class MessageEndpointprotected void publishEvent(@Nonnull
MessageReceiverStatus status,
@Nullable
java.lang.String message,
@Nullable
ChannelDurationBehind durationBehind)