Record Class ScheduleAutoCancelled
java.lang.Object
java.lang.Record
io.fluxzero.common.api.scheduling.ScheduleAutoCancelled
- Record Components:
scheduleId- removed schedule identitymessageId- removed scheduled message identity, not the replacement's identitydeadline- scheduled delivery time in epoch milliseconds
public record ScheduleAutoCancelled(String scheduleId, String messageId, long deadline)
extends Record
Best-effort metric emitted after an owned schedule was removed following parent deletion.
It contains no command payload. A schedule already delivered to a consumer cannot be recalled.
This metric is operational telemetry, not an exactly-once audit record.
-
Constructor Summary
ConstructorsConstructorDescriptionScheduleAutoCancelled(String scheduleId, String messageId, long deadline) Creates an instance of aScheduleAutoCancelledrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongdeadline()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 themessageIdrecord component.Returns the value of thescheduleIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScheduleAutoCancelled
Creates an instance of aScheduleAutoCancelledrecord class.- Parameters:
scheduleId- the value for thescheduleIdrecord componentmessageId- the value for themessageIdrecord componentdeadline- the value for thedeadlinerecord 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
-
messageId
-
deadline
-