public interface ExecutionTime
| Modifier and Type | Method and Description |
|---|---|
static ExecutionTime |
forCron(Cron cron)
Creates execution time for given Cron.
|
boolean |
isMatch(java.time.ZonedDateTime date)
Provide feedback if a given date matches the cron expression.
|
Optional<java.time.ZonedDateTime> |
lastExecution(java.time.ZonedDateTime date)
Provide nearest date for last execution.
|
Optional<java.time.ZonedDateTime> |
nextExecution(java.time.ZonedDateTime date)
Provide nearest date for next execution.
|
Optional<java.time.Duration> |
timeFromLastExecution(java.time.ZonedDateTime date)
Provide nearest time from last execution.
|
Optional<java.time.Duration> |
timeToNextExecution(java.time.ZonedDateTime date)
Provide nearest time for next execution.
|
static ExecutionTime forCron(Cron cron)
cron - - Cron instanceOptional<java.time.ZonedDateTime> nextExecution(java.time.ZonedDateTime date)
date - - ZonedDateTime instance. If null, a NullPointerException will be raised.Optional<java.time.Duration> timeToNextExecution(java.time.ZonedDateTime date)
date - - ZonedDateTime instance. If null, a NullPointerException will be raised.Optional<java.time.ZonedDateTime> lastExecution(java.time.ZonedDateTime date)
date - - ZonedDateTime instance. If null, a NullPointerException will be raised.Optional<java.time.Duration> timeFromLastExecution(java.time.ZonedDateTime date)
date - - ZonedDateTime instance. If null, a NullPointerException will be raised.boolean isMatch(java.time.ZonedDateTime date)
date - - ZonedDateTime instance. If null, a NullPointerException will be raised.Copyright © 2021. All rights reserved.