Class ScheduleIntervalTrigger.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • initialJitterInMinutes

        public ScheduleIntervalTrigger.Builder initialJitterInMinutes​(Integer initialJitterInMinutes)
        Maximum number of minutes after timeStart that the scheduler may use to randomly select the first execution time.

        This value is considered only when isRandomStartTime is true. This value applies only to the initial execution; subsequent executions remain deterministic based on the resolved first trigger time. If timeStart is null, the service resolves the effective start time using the current time. The initial jitter window is then applied once to that resolved start time to determine the first execution time. If not provided and isRandomStartTime is true, the service defaults the jitter window to half of the configured interval duration. The value must not exceed the configured interval duration.

        Parameters:
        initialJitterInMinutes - the value to set
        Returns:
        this builder
      • isRandomStartTime

        public ScheduleIntervalTrigger.Builder isRandomStartTime​(Boolean isRandomStartTime)

        when true, system generates a randomized first start time between timeStart and timeStart

        • initialJitterInMinutes.

        if timeStart is null, the current time is used as the base start time.

        Parameters:
        isRandomStartTime - the value to set
        Returns:
        this builder