public class WrappedScheduledFuture<T> extends Object implements ScheduledFuture<T>
| Constructor and Description |
|---|
WrappedScheduledFuture(ScheduledFuture<T> f,
Discardable<?> d) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean arg0) |
int |
compareTo(Delayed other) |
T |
get() |
T |
get(long timeout,
TimeUnit timeunit) |
long |
getDelay(TimeUnit timeunit) |
boolean |
isCancelled() |
boolean |
isDone() |
public WrappedScheduledFuture(ScheduledFuture<T> f, Discardable<?> d)
public int compareTo(Delayed other)
compareTo in interface Comparable<Delayed>public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit timeunit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean isCancelled()
isCancelled in interface Future<T>Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.