Class ScheduleId

java.lang.Object
io.fluxzero.sdk.scheduling.ScheduleId

public class ScheduleId extends Object
Represents a unique identifier for a schedule, consisting of a type and an id. It is simply a convenience class used to prevent clashes between schedule ids, e.g.: two functionally different schedules involving the same entity id.

This class is typically used to encapsulate and uniquely identify schedules within a system. The combination of type and id can be used to distinguish between different schedule categories or instances.

Note: when a ScheduleId is used to schedule a message the scheduler actually persists the schedule with a String schedule obtained via toString().

ScheduleIds can be used as-is or extended to form strongly typed schedule ids:


 public class TaskId extends ScheduleId {
     public TaskId(String id) {
         super("task", id);
     }
 }
 
  • Constructor Details

    • ScheduleId

      public ScheduleId()
  • Method Details