WaitingChainTail

Represents the tail (final) stage in a waiting chain. This class encapsulates the final stage and function criteria that a waiting chain should wait for after completing the main processing stages.

Parameters

stage

The command processing stage to wait for.

function

The function criteria for the stage (may be empty for non-function stages).

Constructors

Link copied to clipboard
constructor(stage: CommandStage, function: NamedFunctionInfoData)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val function: NamedFunctionInfoData
Link copied to clipboard
open override val stage: CommandStage

Functions

Link copied to clipboard
open override fun propagate(header: Header, upstream: Message<*, *>)

Propagates context information from an upstream message to the target header.

open override fun propagate(commandWaitEndpoint: String, header: Header)

Executes propagation operation.

Link copied to clipboard
open override fun shouldNotify(processingStage: CommandStage): Boolean

Evaluates whether notification is required for the given processing stage. This allows wait strategies to filter notifications based on their waiting criteria.

open override fun shouldNotify(signal: WaitSignal): Boolean

Evaluates whether the wait signal should trigger a notification. Allows for complex filtering logic based on signal properties like stage, function info, error status, etc.

Link copied to clipboard
open fun shouldPropagate(upstream: Message<*, *>): Boolean

判断是否应该传播指定的消息

Link copied to clipboard
fun CommandStage.toWaitingChainTail(function: NamedFunctionInfoData = NamedFunctionInfoData.EMPTY): WaitingChainTail