Record Class ManagedScheduleProfile
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedScheduleProfile
- Record Components:
metadata- borrowed authenticated CAS metadata resourceclock- measured authenticated-reference clock health, never an application wall-clock argumentpattern- fixed UTC interval or daily local wall timestart- earliest planned UTC occurrence, millisecond precisioninterval- fixed-rate interval, null for DAILYlocalTime- daily local time, null for FIXED_RATEzone- explicit time zone, UTC for FIXED_RATEgap- missing local time behaviorfold- repeated local time behaviormisfire- behavior after the configured lateness thresholdmisfireThreshold- tolerated ordinary scheduler lateness, 1millisecond..1daycatchUpLimit- latest retained overdue occurrences, 1..256overlap- authoritative job claim overlap contract, not forcible Java thread interruptioninput- trusted application input; the job host must capture its canonical encoded snapshot
public record ManagedScheduleProfile(org.j7m.middleware.distributed.ResourceEndpoint metadata, org.j7m.middleware.distributed.ReplicatedResourceClient.ClockHealth clock, ManagedScheduleProfile.Pattern pattern, Instant start, Duration interval, LocalTime localTime, ZoneId zone, ManagedScheduleProfile.Gap gap, ManagedScheduleProfile.Fold fold, ManagedScheduleProfile.Misfire misfire, Duration misfireThreshold, int catchUpLimit, ManagedScheduleProfile.Overlap overlap, Object input)
extends Record
Immutable trusted durable trigger settings. Metadata and execution are separate durable stores;
pending identity bridges their recovery without XA. The host snapshots input through its declared
codec before scheduling; neither the engine nor a timer may decode application DTOs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumResolves a repeated local time during a backward transition.static enumResolves a local time omitted by a forward clock transition.static enumSelects explicit bounded handling of overdue planned occurrences.static enumSelects native durable claim serialization; pending occurrences may remain queued.static enumSupported finite schedule patterns. -
Constructor Summary
ConstructorsConstructorDescriptionManagedScheduleProfile(org.j7m.middleware.distributed.ResourceEndpoint metadata, org.j7m.middleware.distributed.ReplicatedResourceClient.ClockHealth clock, ManagedScheduleProfile.Pattern pattern, Instant start, Duration interval, LocalTime localTime, ZoneId zone, ManagedScheduleProfile.Gap gap, ManagedScheduleProfile.Fold fold, ManagedScheduleProfile.Misfire misfire, Duration misfireThreshold, int catchUpLimit, ManagedScheduleProfile.Overlap overlap, Object input) Validates finite settings without I/O, application construction or clock sampling. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecatchUpLimitrecord component.org.j7m.middleware.distributed.ReplicatedResourceClient.ClockHealthclock()Returns the value of theclockrecord component.final booleanIndicates whether some other object is "equal to" this one.fold()Returns the value of thefoldrecord component.gap()Returns the value of thegaprecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.interval()Returns the value of theintervalrecord component.Returns the value of thelocalTimerecord component.org.j7m.middleware.distributed.ResourceEndpointmetadata()Returns the value of themetadatarecord component.misfire()Returns the value of themisfirerecord component.Returns the value of themisfireThresholdrecord component.overlap()Returns the value of theoverlaprecord component.pattern()Returns the value of thepatternrecord component.start()Returns the value of thestartrecord component.toString()Omits input, resource credentials and clock internals.zone()Returns the value of thezonerecord component.
-
Constructor Details
-
ManagedScheduleProfile
public ManagedScheduleProfile(org.j7m.middleware.distributed.ResourceEndpoint metadata, org.j7m.middleware.distributed.ReplicatedResourceClient.ClockHealth clock, ManagedScheduleProfile.Pattern pattern, Instant start, Duration interval, LocalTime localTime, ZoneId zone, ManagedScheduleProfile.Gap gap, ManagedScheduleProfile.Fold fold, ManagedScheduleProfile.Misfire misfire, Duration misfireThreshold, int catchUpLimit, ManagedScheduleProfile.Overlap overlap, Object input) Validates finite settings without I/O, application construction or clock sampling.- Throws:
NullPointerException- for required metadata, time or policy collaboratorsIllegalArgumentException- for invalid timing, precision or pattern-specific settings
-
-
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. -
metadata
-
clock
-
pattern
-
start
-
interval
-
localTime
-
zone
-
gap
-
fold
-
misfire
-
misfireThreshold
Returns the value of themisfireThresholdrecord component.- Returns:
- the value of the
misfireThresholdrecord component
-
catchUpLimit
public int catchUpLimit()Returns the value of thecatchUpLimitrecord component.- Returns:
- the value of the
catchUpLimitrecord component
-
overlap
-
input
-