Interface MessageReceiverEndpoint
-
- All Superinterfaces:
MessageEndpoint
- All Known Subinterfaces:
MessageLogReceiverEndpoint,MessageQueueReceiverEndpoint
- All Known Implementing Classes:
AbstractMessageLogReceiverEndpoint,AbstractMessageReceiverEndpoint,DelegateMessageLogReceiverEndpoint,DelegateMessageQueueReceiverEndpoint
public interface MessageReceiverEndpoint extends MessageEndpoint
Receiver-sideMessageEndpoint endpointof a Message Channel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessageDispatchergetMessageDispatcher()Returns 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 Detail
-
register
void register(MessageConsumer<?> messageConsumer)
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
@Nonnull MessageDispatcher getMessageDispatcher()
Returns the MessageDispatcher that is used to dispatch messages.- Returns:
- MessageDispatcher
-
-