Record Class ModelDeadlineUpdate

java.lang.Object
java.lang.Record
io.fluxzero.common.api.modeling.ModelDeadlineUpdate
Record Components:
previousScheduleId - ID to cancel before replacements are stored; null for a new category
schedule - replacement schedule, or null to cancel only
cancelOnDeletion - bind the replacement to the Model's existing lifetime ownership mechanism
previousDeadline - original scheduler time in epoch milliseconds for a replacement; null for creation/cancellation

public record ModelDeadlineUpdate(String modelId, String category, String previousScheduleId, SerializedSchedule schedule, boolean cancelOnDeletion, Long previousDeadline) extends Record
SDK-computed ordinary scheduler effects included in a Model commit. No scheduler status is consulted.
  • Field Details

    • METADATA_PREFIX

      public static final String METADATA_PREFIX
      Reserved SDK-owned metadata prefix in Model events, documents and snapshots.
      See Also:
  • Constructor Details

    • ModelDeadlineUpdate

      public ModelDeadlineUpdate(String modelId, String category, String previousScheduleId, SerializedSchedule schedule, boolean cancelOnDeletion, Long previousDeadline)
      Creates an instance of a ModelDeadlineUpdate record class.
      Parameters:
      modelId - the value for the modelId record component
      category - the value for the category record component
      previousScheduleId - the value for the previousScheduleId record component
      schedule - the value for the schedule record component
      cancelOnDeletion - the value for the cancelOnDeletion record component
      previousDeadline - the value for the previousDeadline record component
  • Method Details

    • slotId

      public String slotId()
      Namespace-local reserved schedule identity, independent of declaration method names.
    • scheduleId

      public static String scheduleId(String modelId, String category)
      Derives the stable schedule identity without exposing application string conventions.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • modelId

      public String modelId()
      Returns the value of the modelId record component.
      Returns:
      the value of the modelId record component
    • category

      public String category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • previousScheduleId

      public String previousScheduleId()
      Returns the value of the previousScheduleId record component.
      Returns:
      the value of the previousScheduleId record component
    • schedule

      public SerializedSchedule schedule()
      Returns the value of the schedule record component.
      Returns:
      the value of the schedule record component
    • cancelOnDeletion

      public boolean cancelOnDeletion()
      Returns the value of the cancelOnDeletion record component.
      Returns:
      the value of the cancelOnDeletion record component
    • previousDeadline

      public Long previousDeadline()
      Returns the value of the previousDeadline record component.
      Returns:
      the value of the previousDeadline record component