Package-level declarations

Types

Link copied to clipboard

Abstract base class for wait strategies that wait for a specific stage after command processing is complete. This class ensures that both PROCESSED stage and the target stage are completed before considering the wait strategy satisfied. It's designed for stages that occur after the basic command processing.

Link copied to clipboard
class WaitingForEventHandled(val waitCommandId: String, val function: NamedFunctionInfoData? = null) : WaitingForFunction

Wait strategy that waits for domain events to be handled by event processors. This strategy completes when both command processing and event handling are finished. Optionally filters by specific function criteria if provided.

Link copied to clipboard

Abstract base class for wait strategies that wait for specific function execution within a processing stage. This class extends WaitingForAfterProcessed and adds function-based filtering capabilities. Subclasses can specify which functions within their stage they want to wait for.

Link copied to clipboard
class WaitingForProcessed(val waitCommandId: String) : WaitingForStage

Wait strategy that waits for command processing to complete. This is the most basic wait strategy that completes when the aggregate has finished processing the command and generated any domain events.

Link copied to clipboard
class WaitingForProjected(val waitCommandId: String, val function: NamedFunctionInfoData? = null) : WaitingForFunction

Wait strategy that waits for projections to be updated based on command-generated events. This strategy completes when both command processing and projection updates are finished. Only completes on the final projection signal to ensure all projections are updated. Optionally filters by specific projection function criteria if provided.

Link copied to clipboard
class WaitingForSagaHandled(val waitCommandId: String, val function: NamedFunctionInfoData? = null) : WaitingForFunction

Wait strategy that waits for sagas to handle command-generated events. This strategy completes when both command processing and saga event handling are finished. Sagas may generate additional commands as part of their processing. Optionally filters by specific saga function criteria if provided.

Link copied to clipboard
class WaitingForSent(val waitCommandId: String) : WaitingForStage

Wait strategy that completes immediately when the command is sent to the bus. This is the most minimal wait strategy - it doesn't wait for any processing. Supports void commands since no processing results are expected.

Link copied to clipboard

Wait strategy that waits for aggregate snapshots to be generated. This strategy completes when both command processing and snapshot creation are finished. Snapshots are used for performance optimization in high-throughput scenarios.

Link copied to clipboard

Single command waiting strategy based on command execution phase