WILL_NOT_BE_EXECUTED_AGAIN, willNeverBeExecuted| Constructor and Description |
|---|
FixedFrequencySchedule(Duration frequency) |
| Modifier and Type | Method and Description |
|---|---|
long |
nextExecutionInMillis(long currentTimeInMillis,
int executionsCount,
Long lastExecutionEndedTimeInMillis)
Compute the next execution time for a job.
|
String |
toString() |
public FixedFrequencySchedule(Duration frequency)
public long nextExecutionInMillis(long currentTimeInMillis,
int executionsCount,
Long lastExecutionEndedTimeInMillis)
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 executedlastExecutionEndedTimeInMillis - 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 © 2024 Coreoz. All rights reserved.