Package de.g3s1.oss.cron.api
Interface CronEntry
public interface CronEntry
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Remove task from cronjava.time.InstantRetrieve last execution timejava.time.InstantRetrieve the next execution time
-
Method Details
-
cancel
void cancel()Remove task from cron -
lastExecutionTime
java.time.Instant lastExecutionTime()Retrieve last execution time- Returns:
- last exution time -
null
if the task was not executed yet.
-
nextExecutionTime
java.time.Instant nextExecutionTime()Retrieve the next execution time- Returns:
- next execution time -
null
if the task will not execute again.
-