Class CronScheduledFuture<V>
- java.lang.Object
-
- org.apache.logging.log4j.core.config.CronScheduledFuture<V>
-
- All Implemented Interfaces:
Comparable<Delayed>
,Delayed
,Future<V>
,ScheduledFuture<V>
public class CronScheduledFuture<V> extends Object implements ScheduledFuture<V>
-
-
Constructor Summary
Constructors Constructor Description CronScheduledFuture(ScheduledFuture<V> future, Date runDate)
-
Method Summary
All Methods Instance Methods Concrete Methods 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()
-
-
-
Constructor Detail
-
CronScheduledFuture
public CronScheduledFuture(ScheduledFuture<V> future, Date runDate)
-
-
Method Detail
-
getFireTime
public Date getFireTime()
-
compareTo
public int compareTo(Delayed delayed)
- Specified by:
compareTo
in interfaceComparable<V>
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceFuture<V>
-
get
public V get() throws InterruptedException, ExecutionException
- Specified by:
get
in interfaceFuture<V>
- Throws:
InterruptedException
ExecutionException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
get
in interfaceFuture<V>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
-