A consumer endpoint for
Message with payload-type <T>.
Multiple EventConsumers may listen at a single
EventSource. A single EventConsumer
must be registered to multiple EventSources.
By default, Synapse is auto-configuring a
EventSourceConsumerProcess that is
running a separate thread for every MessageConsumer. The thread is taking care for continuous
consumption of messages using the consumers, until the application is shutting down.
If you need to manually consume messages using MessageConsumers, auto-configuration of the
EventSourceConsumerProcess can be disabled by setting
SynapseProperties.ConsumerProcess#setEnabled(boolean)
MessageConsumers are expected to be thread-safe.