Class ScheduleIntervalSpec


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

    epoch + (n * every) + offset.

    • Constructor Summary

      Constructors 
      Constructor Description
      ScheduleIntervalSpec​(java.time.Duration every)
      Construct a ScheduleIntervalSpec
      ScheduleIntervalSpec​(java.time.Duration every, java.time.Duration offset)
      Construct a ScheduleIntervalSpec
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.time.Duration getEvery()
      Period to repeat the interval.
      java.time.Duration getOffset()
      Fixed offset added to each interval period.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ScheduleIntervalSpec

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

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

      • getEvery

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

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

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object