Record Class DeadlineInfo
java.lang.Object
java.lang.Record
io.fluxzero.sdk.scheduling.DeadlineInfo
- Record Components:
scheduleId- public identity used by the ordinary schedulerdeadline- original resolved execution time, preserved across unrelated Model changescommand- whether the payload is dispatched as a scheduled commandcancelOnDeletion- whether deleting the Model cancels this schedule
-
Constructor Summary
ConstructorsConstructorDescriptionDeadlineInfo(String scheduleId, Instant deadline, boolean command, boolean cancelOnDeletion) Creates an instance of aDeadlineInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelOnDeletionrecord component.booleancommand()Returns the value of thecommandrecord component.deadline()Returns the value of thedeadlinerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thescheduleIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeadlineInfo
Creates an instance of aDeadlineInforecord class.- Parameters:
scheduleId- the value for thescheduleIdrecord componentdeadline- the value for thedeadlinerecord componentcommand- the value for thecommandrecord componentcancelOnDeletion- the value for thecancelOnDeletionrecord component
-
-
Method Details
-
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. -
scheduleId
Returns the value of thescheduleIdrecord component.- Returns:
- the value of the
scheduleIdrecord component
-
deadline
-
command
-
cancelOnDeletion
public boolean cancelOnDeletion()Returns the value of thecancelOnDeletionrecord component.- Returns:
- the value of the
cancelOnDeletionrecord component
-