Class JobScheduled

java.lang.Object
ai.redouble.nucleo.events.AbstractJobEvent
ai.redouble.nucleo.events.JobScheduled
All Implemented Interfaces:
LifecycleEvent, JobEvent, Serializable

public final class JobScheduled extends AbstractJobEvent implements LifecycleEvent
Event published when a job is scheduled or queued for execution. The dispatcher fires it with state QUEUED, the job's requirements and its priority; the one-argument form is acceptance alone, with no requirements and priority zero.
Since:
0.1 (2025-08-11)
Author:
Andrey Santrosyan
See Also:
  • Constructor Details

    • JobScheduled

      public JobScheduled(JobSnapshot snapshot, JobScheduled.State state, JobRequirements requirements, int priority)
      Creates a job scheduled event with state and requirements.
    • JobScheduled

      public JobScheduled(JobSnapshot snapshot)
      Creates a job scheduled event for acceptance.
  • Method Details