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 categoryschedule- replacement schedule, or null to cancel onlycancelOnDeletion- bind the replacement to the Model's existing lifetime ownership mechanismpreviousDeadline- original scheduler time in epoch milliseconds for a replacement; null for creation/cancellation
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringReserved SDK-owned metadata prefix in Model events, documents and snapshots. -
Constructor Summary
ConstructorsConstructorDescriptionModelDeadlineUpdate(String modelId, String category, String previousScheduleId, SerializedSchedule schedule, boolean cancelOnDeletion, Long previousDeadline) Creates an instance of aModelDeadlineUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelOnDeletionrecord component.category()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modelId()Returns the value of themodelIdrecord component.Returns the value of thepreviousDeadlinerecord component.Returns the value of thepreviousScheduleIdrecord component.schedule()Returns the value of theschedulerecord component.static StringscheduleId(String modelId, String category) Derives the stable schedule identity without exposing application string conventions.slotId()Namespace-local reserved schedule identity, independent of declaration method names.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
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 aModelDeadlineUpdaterecord class.- Parameters:
modelId- the value for themodelIdrecord componentcategory- the value for thecategoryrecord componentpreviousScheduleId- the value for thepreviousScheduleIdrecord componentschedule- the value for theschedulerecord componentcancelOnDeletion- the value for thecancelOnDeletionrecord componentpreviousDeadline- the value for thepreviousDeadlinerecord component
-
-
Method Details
-
slotId
Namespace-local reserved schedule identity, independent of declaration method names. -
scheduleId
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
previousScheduleId
Returns the value of thepreviousScheduleIdrecord component.- Returns:
- the value of the
previousScheduleIdrecord component
-
schedule
-
cancelOnDeletion
public boolean cancelOnDeletion()Returns the value of thecancelOnDeletionrecord component.- Returns:
- the value of the
cancelOnDeletionrecord component
-
previousDeadline
Returns the value of thepreviousDeadlinerecord component.- Returns:
- the value of the
previousDeadlinerecord component
-