TimerTrigger.schedule Method

Definition

A CRON expression in the format {second} {minute} {hour} {day} {month} {day-of-week}.

| --------------------------------------------- | ------------------ |
| Goal                                          | CRON Expression    |
| To trigger once every five minutes:           | 0 \*/5 \* \* \* \* |
| To trigger once at the top of every hour:     | 0 0 \* \* \* \*    |
| To trigger once every two hours:              | 0 0 \*/2 \* \* \*  |
| To trigger once every hour from 9 AM to 5 PM: | 0 0 9-17 \* \* \*  |
| To trigger at 9:30 AM every day:              | 0 30 9 \* \* \*    |
| To trigger at 9:30 AM every weekday:          | 0 30 9 \* \* 1-5   |
public abstract String schedule()

Returns

java.lang.String

A string representing a CRON expression that will be used to schedule a function to run.

Applies to