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
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface java.util.concurrent.Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, state
-
Method Details
-
getPromise
CompletableFuture<T> getPromise()- Returns:
- Returns the
CompletableFutureassociated with the scheduled job.
-
getScheduledTime
ZonedDateTime getScheduledTime()- Returns:
- Returns the timestamp the jobs is scheduled to run at.
-