Class DefaultScheduledFuture<R>
java.lang.Object
dev.failsafe.spi.DefaultScheduledFuture<R>
- Type Parameters:
R- result type
- All Implemented Interfaces:
Comparable<Delayed>, Delayed, Future<R>, ScheduledFuture<R>
A default ScheduledFuture implementation. Useful for
Scheduler implementations.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultScheduledFuture
public DefaultScheduledFuture()
-
-
Method Details
-
getDelay
-
compareTo
- Specified by:
compareToin interfaceComparable<R>- Returns:
0
-
cancel
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<R>- Returns:
false
-
isDone
-
get
- Specified by:
getin interfaceFuture<R>- Returns:
null- Throws:
InterruptedExceptionExecutionException
-
get
public R get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<R>- Returns:
null- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-