Record Class ManagedScheduleProfile

java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedScheduleProfile
Record Components:
metadata - borrowed authenticated CAS metadata resource
clock - measured authenticated-reference clock health, never an application wall-clock argument
pattern - fixed UTC interval or daily local wall time
start - earliest planned UTC occurrence, millisecond precision
interval - fixed-rate interval, null for DAILY
localTime - daily local time, null for FIXED_RATE
zone - explicit time zone, UTC for FIXED_RATE
gap - missing local time behavior
fold - repeated local time behavior
misfire - behavior after the configured lateness threshold
misfireThreshold - tolerated ordinary scheduler lateness, 1millisecond..1day
catchUpLimit - latest retained overdue occurrences, 1..256
overlap - authoritative job claim overlap contract, not forcible Java thread interruption
input - 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.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Omits input, resource credentials and clock internals.
      Specified by:
      toString in class Record
      Returns:
      fixed safe diagnostic
    • 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.
    • metadata

      public org.j7m.middleware.distributed.ResourceEndpoint metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component
    • clock

      public org.j7m.middleware.distributed.ReplicatedResourceClient.ClockHealth clock()
      Returns the value of the clock record component.
      Returns:
      the value of the clock record component
    • pattern

      Returns the value of the pattern record component.
      Returns:
      the value of the pattern record component
    • start

      public Instant start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • interval

      public Duration interval()
      Returns the value of the interval record component.
      Returns:
      the value of the interval record component
    • localTime

      public LocalTime localTime()
      Returns the value of the localTime record component.
      Returns:
      the value of the localTime record component
    • zone

      public ZoneId zone()
      Returns the value of the zone record component.
      Returns:
      the value of the zone record component
    • gap

      Returns the value of the gap record component.
      Returns:
      the value of the gap record component
    • fold

      Returns the value of the fold record component.
      Returns:
      the value of the fold record component
    • misfire

      Returns the value of the misfire record component.
      Returns:
      the value of the misfire record component
    • misfireThreshold

      public Duration misfireThreshold()
      Returns the value of the misfireThreshold record component.
      Returns:
      the value of the misfireThreshold record component
    • catchUpLimit

      public int catchUpLimit()
      Returns the value of the catchUpLimit record component.
      Returns:
      the value of the catchUpLimit record component
    • overlap

      Returns the value of the overlap record component.
      Returns:
      the value of the overlap record component
    • input

      public Object input()
      Returns the value of the input record component.
      Returns:
      the value of the input record component