Package org.axonframework.eventsourcing
Class MultiStreamableMessageSource
java.lang.Object
org.axonframework.eventhandling.MultiStreamableMessageSource
org.axonframework.eventsourcing.MultiStreamableMessageSource
- All Implemented Interfaces:
StreamableMessageSource<TrackedEventMessage<?>>
Deprecated.
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.In favor ofMultiStreamableMessageSource.Builder. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated.In favor ofMultiStreamableMessageSource.builder().Methods inherited from class org.axonframework.eventhandling.MultiStreamableMessageSource
createHeadToken, createTailToken, createTokenAt, createTokenSince, openStream
-
Constructor Details
-
MultiStreamableMessageSource
Deprecated.In favor ofMultiStreamableMessageSource(org.axonframework.eventhandling.MultiStreamableMessageSource.Builder). This class belongs in themessagingmodule instead of theeventsourcingmodule.Instantiate aMultiStreamableMessageSourcebased on the fields contained in theMultiStreamableMessageSource.Builder.- Parameters:
builder- theMultiStreamableMessageSource.Builderused to instantiate aMultiStreamableMessageSourceinstance.
-
-
Method Details
-
builder
Deprecated.In favor ofMultiStreamableMessageSource.builder(). This class belongs in themessagingmodule instead of theeventsourcingmodule.Instantiate a Builder to be able to create anMultiStreamableMessageSource. The configurable fieldtrackedEventComparator, which decides which message to process first if there is a choice defaults to the oldest message available (using the event's timestamp).- Returns:
- a Builder to be able to create a
MultiStreamableMessageSource.
-
MultiStreamableMessageSource. This class belongs in themessagingmodule instead of theeventsourcingmodule.