Interface MessageReceiverEndpoint
- All Superinterfaces:
MessageEndpoint
- All Known Subinterfaces:
MessageLogReceiverEndpoint,MessageQueueReceiverEndpoint
- All Known Implementing Classes:
AbstractMessageLogReceiverEndpoint,AbstractMessageReceiverEndpoint,DelegateMessageLogReceiverEndpoint,DelegateMessageQueueReceiverEndpoint
Receiver-side
MessageEndpoint endpoint of a Message Channel
-
Method Summary
Modifier and TypeMethodDescriptionReturns the MessageDispatcher that is used to dispatch messages.voidregister(MessageConsumer<?> messageConsumer) Registers a MessageConsumer at the receiver endpoint.Methods inherited from interface de.otto.synapse.endpoint.MessageEndpoint
getChannelName, getEndpointType, getInterceptorChain, intercept
-
Method Details
-
register
Registers a MessageConsumer at the receiver endpoint.consumershave 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).- Parameters:
messageConsumer- registered EventConsumer
-
getMessageDispatcher
Returns the MessageDispatcher that is used to dispatch messages.- Returns:
- MessageDispatcher
-