Package org.openhab.core.scheduler
Interface ScheduledCompletableFuture<T>
- All Superinterfaces:
Comparable<Delayed>
,Delayed
,Future<T>
,ScheduledFuture<T>
Interface returned by all scheduled jobs. It can be used to wait for the value,
cancel the job or check how much time till the scheduled job will run.
- Author:
- Hilbrand Bouwkamp - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getPromise
CompletableFuture<T> getPromise()- Returns:
- Returns the
CompletableFuture
associated with the scheduled job.
-
getScheduledTime
ZonedDateTime getScheduledTime()- Returns:
- Returns the timestamp the jobs is scheduled to run at.
-