SimpleWaitingForChain

class SimpleWaitingForChain(val waitCommandId: String, val materialized: SimpleWaitingChain) : WaitingFor

A waiting strategy that implements a simple chain of command processing stages. This strategy waits for saga handling completion with specific function criteria, then waits for additional commands generated by the saga to complete their processing. It's designed for scenarios where sagas generate follow-up commands that need to be waited on.

Parameters

waitCommandId

The unique identifier for this wait strategy.

materialized

The materialized waiting chain configuration.

Constructors

Link copied to clipboard
constructor(waitCommandId: String, materialized: SimpleWaitingChain)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val cancelled: Boolean
Link copied to clipboard
open override val completed: Boolean
Link copied to clipboard
open override val materialized: SimpleWaitingChain
Link copied to clipboard
open override val supportVoidCommand: Boolean = false

Whether this strategy supports void commands.

Link copied to clipboard
open override val terminated: Boolean
Link copied to clipboard
open override val waitCommandId: String

Functions

Link copied to clipboard
open override fun complete()

Marks the wait strategy as completed.

Link copied to clipboard
open override fun error(throwable: Throwable)

Signals an error occurred during command processing.

Link copied to clipboard
open override fun isPreviousSignal(signal: WaitSignal): Boolean

Determines if the given wait signal represents a prerequisite stage. Prerequisite signals are those that must complete before this wait strategy can consider its waiting condition satisfied.

Link copied to clipboard
open override fun next(signal: WaitSignal)

Receives the next processing result signal from downstream processors.

Link copied to clipboard
open override fun onFinally(doFinally: Consumer<SignalType>)

Registers a callback to be executed when the strategy completes.

Link copied to clipboard
open override fun propagate(commandWaitEndpoint: String, header: Header)

执行传播操作

Link copied to clipboard
open override fun waiting(): Flux<WaitSignal>

Returns a flux of wait signals as processing progresses.

Link copied to clipboard
open override fun waitingLast(): Mono<WaitSignal>

Returns a mono that completes with the final wait signal.