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) |
| Modifier and Type | Method and Description |
|---|---|
protected EndpointType |
getEndpointType() |
MessageDispatcher |
getMessageDispatcher()
Returns the MessageDispatcher that is used to dispatch messages.
|
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)
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 MessageEndpoint