Class ScheduleIntervalSpec

java.lang.Object
io.temporal.client.schedules.ScheduleIntervalSpec

public final class ScheduleIntervalSpec extends Object
Specification for scheduling on an interval. Matching times are expressed as

epoch + (n * every) + offset.

  • Constructor Details

    • ScheduleIntervalSpec

      public ScheduleIntervalSpec(@Nonnull Duration every)
      Construct a ScheduleIntervalSpec
      Parameters:
      every - Period to repeat the interval
    • ScheduleIntervalSpec

      public ScheduleIntervalSpec(@Nonnull Duration every, @Nullable Duration offset)
      Construct a ScheduleIntervalSpec
      Parameters:
      every - Period to repeat the interval
      offset - Fixed offset added to each interval period.
  • Method Details

    • getEvery

      @Nonnull public Duration getEvery()
      Period to repeat the interval.
      Returns:
      period to repeat
    • getOffset

      @Nullable public Duration getOffset()
      Fixed offset added to each interval period.
      Returns:
      offset interval
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object