Interface Schedule.Builder

    • Method Detail

      • scheduleExpression

        Schedule.Builder scheduleExpression​(String scheduleExpression)

        A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

        Parameters:
        scheduleExpression - A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • state

        Schedule.Builder state​(String state)

        The state of the schedule.

        Parameters:
        state - The state of the schedule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ScheduleState, ScheduleState