Comparable<Delayed>
, Delayed
, Future<V>
, ScheduledFuture<V>
public class CronScheduledFuture<V> extends Object implements ScheduledFuture<V>
Constructor | Description |
---|---|
CronScheduledFuture(ScheduledFuture<V> future,
Date runDate) |
Modifier and Type | Method | 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<V>
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<V>
public V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
InterruptedException
ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<V>
InterruptedException
ExecutionException
TimeoutException
Copyright © 1999-2018. 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.