public class SingleExecutionTime extends Object implements ExecutionTime
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMatch(ZonedDateTime date)
Provide feedback if a given date matches the cron expression.
|
Optional<ZonedDateTime> |
lastExecution(ZonedDateTime date)
Provide nearest date for last execution.
|
Optional<ZonedDateTime> |
nextExecution(ZonedDateTime date)
Provide nearest date for next execution.
|
Optional<Duration> |
timeFromLastExecution(ZonedDateTime date)
Provide nearest time from last execution.
|
Optional<Duration> |
timeToNextExecution(ZonedDateTime date)
Provide nearest time for next execution.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountExecutions, forCron, getExecutionDatespublic Optional<ZonedDateTime> nextExecution(ZonedDateTime date)
nextExecution in interface ExecutionTimedate - - ZonedDateTime instance. If null, a NullPointerException will be raised.public Optional<Duration> timeToNextExecution(ZonedDateTime date)
timeToNextExecution in interface ExecutionTimedate - - ZonedDateTime instance. If null, a NullPointerException will be raised.public Optional<ZonedDateTime> lastExecution(ZonedDateTime date)
lastExecution in interface ExecutionTimedate - - ZonedDateTime instance. If null, a NullPointerException will be raised.public Optional<Duration> timeFromLastExecution(ZonedDateTime date)
timeFromLastExecution in interface ExecutionTimedate - - ZonedDateTime instance. If null, a NullPointerException will be raised.public boolean isMatch(ZonedDateTime date)
isMatch in interface ExecutionTimedate - - ZonedDateTime instance. If null, a NullPointerException will be raised.Copyright © 2023. All rights reserved.