Class JobScheduled
java.lang.Object
ai.redouble.nucleo.events.AbstractJobEvent
ai.redouble.nucleo.events.JobScheduled
- All Implemented Interfaces:
LifecycleEvent, JobEvent, Serializable
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJobScheduled(JobSnapshot snapshot) Creates a job scheduled event for acceptance.JobScheduled(JobSnapshot snapshot, JobScheduled.State state, JobRequirements requirements, int priority) Creates a job scheduled event with state and requirements. -
Method Summary
Methods inherited from class AbstractJobEvent
message, setMessage, snapshot, timestamp
-
Constructor Details
-
JobScheduled
public JobScheduled(JobSnapshot snapshot, JobScheduled.State state, JobRequirements requirements, int priority) Creates a job scheduled event with state and requirements. -
JobScheduled
Creates a job scheduled event for acceptance.
-
-
Method Details
-
getState
-
requirements
-
priority
public int priority()
-