Package io.temporal.client.schedules
Class ScheduleIntervalSpec
- java.lang.Object
-
- io.temporal.client.schedules.ScheduleIntervalSpec
-
public final class ScheduleIntervalSpec extends java.lang.ObjectSpecification for scheduling on an interval. Matching times are expressed asepoch + (n * every) + offset.
-
-
Constructor Summary
Constructors Constructor Description ScheduleIntervalSpec(java.time.Duration every)Construct a ScheduleIntervalSpecScheduleIntervalSpec(java.time.Duration every, java.time.Duration offset)Construct a ScheduleIntervalSpec
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.time.DurationgetEvery()Period to repeat the interval.java.time.DurationgetOffset()Fixed offset added to each interval period.inthashCode()java.lang.StringtoString()
-
-
-
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 intervaloffset- 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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-