Package-level declarations
Types
The system command wow.schedule.CancelSchedule: cancels the schedule key of the aggregate it is sent to.
The system command wow.schedule.DisableJob: stops the job instance it is sent to.
The system command wow.schedule.EnableJob: creates, or enables again, the instance of the job job it is sent to, the aggregate <context>.schedule whose id is the job's name in its tenant. rule overrides the job's default rule (null keeps the instance's own override, if any); partition is the log partition of an instance of a JobScope.SHARDED job, which the host enables.
The system event wow.schedule.JobDisabled: the instance does not run until it is enabled again.
Who a job of me.ahoo.wow.api.annotation.OnSchedule runs for.
The system event wow.schedule.JobTicked: the instance ran the slot of its timer, due at due, after skipped slots the schedule coalesced. Its fields are in ScheduleContext's order: slot, due, skipped.
The system command wow.schedule.RescheduleJob: overrides the rule of the job instance it is sent to with rule; null follows the job's default again.
The system event wow.schedule.ScheduleCancelled: the aggregate cancelled its schedule key.
Which time of a schedule a command was sent for, as its target reads it from me.ahoo.wow.api.decide.Command.schedule: the timer (ref#key@version) of the schedule key, its slot (from 1, one per time it is due), the time that slot was due (epoch milliseconds), and how many slots before it a recurring schedule skipped because they were missed (Misfire.COALESCE). A command sent for a schedule carries it in its headers (HEADERS); its request id is timer#slot.
The names of the job aggregate, its system commands and events.
The system event wow.schedule.ScheduleSet: the aggregate set its schedule key, to send target the command of type commandType, command its body as a JSON object, as rule says. Committed with the aggregate's other events; the built-in timers subscription derives the timer store from it.
What an me.ahoo.wow.api.annotation.OnSchedule handler receives: the tenantId of the instance (the default tenant for a JobScope.SYSTEM or a JobScope.SHARDED job), the job, the slot that was due at due (epoch milliseconds), how many slots before it were skipped (coalesced, none by default), and, for a JobScope.SHARDED job, the log partition whose aggregates this tick is for. A slot counts from 1. The slot's fields are in ScheduleContext's order: slot, due, skipped.
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.
The system command wow.schedule.TickJob: the schedule of a job instance is due; the slot is the command's ScheduleContext. Only a slot newer than the last one ticks.