QueueMessage

@Serializable
sealed class QueueMessage

Sealed class representing different types of queue messages.

Inheritors

Types

Link copied to clipboard
@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.

Link copied to clipboard
@Serializable
data class HookMessage(val planId: UUID, val hook: Hook) : QueueMessage

Data class representing a message for the hook.

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.