public class AbstractMessageReceiverEndpoint extends AbstractMessageEndpoint implements MessageReceiverEndpoint
MessageEndpoint endpoint of a Message Channel
| Constructor and Description |
|---|
AbstractMessageReceiverEndpoint(java.lang.String channelName,
MessageInterceptorRegistry interceptorRegistry,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
org.springframework.context.ApplicationEventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
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, interceptclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChannelName, getInterceptorChain, interceptpublic AbstractMessageReceiverEndpoint(@Nonnull
java.lang.String channelName,
@Nonnull
MessageInterceptorRegistry interceptorRegistry,
@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).register in interface MessageReceiverEndpointmessageConsumer - registered EventConsumer@Nonnull public final MessageDispatcher getMessageDispatcher()
getMessageDispatcher in interface MessageReceiverEndpoint@Nonnull public final EndpointType getEndpointType()
MessageEndpointgetEndpointType in interface MessageEndpointprotected void publishEvent(@Nonnull
MessageReceiverStatus status,
@Nullable
java.lang.String message,
@Nullable
ChannelDurationBehind durationBehind)