WILL_NOT_BE_EXECUTED_AGAIN, willNeverBeExecuted| Constructor and Description |
|---|
FixedHourSchedule(LocalTime every) |
FixedHourSchedule(LocalTime every,
ZoneId zoneId) |
FixedHourSchedule(String every)
Parse time in the form of "hh:mm" or "hh:mm:ss"
|
FixedHourSchedule(String every,
ZoneId zoneId)
Parse time in the form of "hh:mm" or "hh:mm:ss"
|
| Modifier and Type | Method and Description |
|---|---|
LocalTime |
executionTime() |
long |
nextExecutionInMillis(long currentTimeInMillis,
int executionsCount,
Long lastExecutionTimeInMillis)
Compute the next execution time for a job.
|
String |
toString() |
ZoneId |
zoneId() |
public FixedHourSchedule(String every)
public FixedHourSchedule(String every, ZoneId zoneId)
public FixedHourSchedule(LocalTime every)
public LocalTime executionTime()
public ZoneId zoneId()
public long nextExecutionInMillis(long currentTimeInMillis,
int executionsCount,
Long lastExecutionTimeInMillis)
SchedulenextExecutionInMillis in interface SchedulecurrentTimeInMillis - The current time in milliseconds. This time must be used if
a next execution is planned for the jobexecutionsCount - The number of times a job has already been executedlastExecutionTimeInMillis - The time at which the job has last been executed; will be null
if the job has never been executedcurrentTimeInMillis.
If the returned value is negative, the job will not be executed again.Copyright © 2023 Coreoz. All rights reserved.