StepCompleted

data class StepCompleted<out R>(val step: TypedValue, val result: R, val timestamp: Long = System.currentTimeMillis()) : SagaEvent

Emitted when a saga step completes successfully.

Constructors

Link copied to clipboard
constructor(step: TypedValue, result: R, timestamp: Long = System.currentTimeMillis())

Properties

Link copied to clipboard
val result: R

The result value from the step execution

Link copied to clipboard

The step identifier wrapped in TypedValue

Link copied to clipboard

String representation for backward compatibility.

Link copied to clipboard
open override val timestamp: Long

Timestamp when the event occurred (milliseconds since epoch).

Functions

Link copied to clipboard
inline fun <E : Enum<E>> stepAs(): E?

Retrieves step as specified enum type.