public class CronScheduledFuture<V> extends Object implements ScheduledFuture<V>
| Constructor and Description |
|---|
CronScheduledFuture(ScheduledFuture<V> future,
Date runDate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
int |
compareTo(Delayed delayed) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
long |
getDelay(TimeUnit unit) |
Date |
getFireTime() |
boolean |
isCancelled() |
boolean |
isDone() |
public CronScheduledFuture(ScheduledFuture<V> future, Date runDate)
public Date getFireTime()
public int compareTo(Delayed delayed)
compareTo in interface Comparable<Delayed>public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>public V get() throws InterruptedException, ExecutionException
get in interface Future<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.