Package io.temporal.client.schedules
Class ScheduleIntervalSpec
- java.lang.Object
-
- io.temporal.client.schedules.ScheduleIntervalSpec
-
public final class ScheduleIntervalSpec extends java.lang.Object
Specification 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 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()
-
-
-
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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-