ExecutorMessage

@Serializable
data class ExecutorMessage(val planId: UUID, val taskId: UUID, val action: Action, val maxFailureRetry: Int, val toBeExecutedAt: Long) : QueueMessage

Data class representing a message for the executor.

Constructors

Link copied to clipboard
constructor(planId: UUID, taskId: UUID, action: Action, maxFailureRetry: Int, toBeExecutedAt: Long)

Properties

Link copied to clipboard

The action to be performed.

Link copied to clipboard

The maximum number of retries allowed on failure.

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val planId: UUID

The unique identifier of the plan.

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val taskId: UUID

The unique identifier of the task.

Link copied to clipboard

Functions

Link copied to clipboard

Extension function to encode a QueueMessage to a ByteArray using the provided Json instance.

Link copied to clipboard

Extension function to encode a QueueMessage to a String using the provided Json instance.