SetSchedule

class SetSchedule @InternalWowApi constructor(val key: String, val rule: ScheduleRule, val commandType: String, val command: ObjectNode)

The system command wow.schedule.SetSchedule: sets the schedule key of the aggregate it is sent to, to send it the command of type commandType (context.aggregate.Command), command its body as a JSON object, as rule says. Every aggregate decides it without user code, on an aggregate that exists; a saga derives it (me.ahoo.wow.api.subscribe.SagaContext.schedule). A cron rule whose expression or time zone cannot be read, or that names no time that ever comes, is rejected (wow.command.invalid), and nothing is committed.

Fields may be added: construct one with of; the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(key: String, rule: ScheduleRule, commandType: String, command: ObjectNode)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val command: ObjectNode
Link copied to clipboard
Link copied to clipboard
val key: String
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String