StepSkipped

data class StepSkipped(val step: TypedValue, val skipReason: TypedValue, val timestamp: Long = System.currentTimeMillis()) : SagaEvent

Emitted when a saga step is skipped.

This occurs when a step returns skip with reason, indicating that remaining steps should be skipped without triggering compensation. The saga will complete with the last successful result.

Constructors

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

Properties

Link copied to clipboard

String representation for backward compatibility.

Link copied to clipboard

The reason for skipping wrapped in TypedValue

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>> reasonAs(): E?

Retrieves skip reason as specified enum type.

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

Retrieves step as specified enum type.