Class MultiStreamableMessageSource

java.lang.Object
org.axonframework.eventhandling.MultiStreamableMessageSource
org.axonframework.eventsourcing.MultiStreamableMessageSource
All Implemented Interfaces:
StreamableMessageSource<TrackedEventMessage<?>>

@Deprecated public class MultiStreamableMessageSource extends MultiStreamableMessageSource
Deprecated.
In favor of MultiStreamableMessageSource. This class belongs in the messaging module instead of the eventsourcing module.
Implementation which allows for tracking processors to process messages from an arbitrary number of sources. The order in which messages from each stream are consumed is configurable but defaults to the oldest message available (using the event's timestamp). When the stream is polled for a specified duration, each stream is called with MultiSourceBlockingStream#hasNextAvailable() except for the last stream configured by the MultiStreamableMessageSource.Builder.addMessageSource(String, StreamableMessageSource) or by explicit configuration using MultiStreamableMessageSource.Builder.longPollingSource(String). This stream long polls for a fraction of the specified duration before looping through the sources again repeating until the duration has been met. This ensures the highest chance of a consumable message being found.
Since:
4.2
Author:
Greg Woods