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>
InterruptedException
ExecutionException
public T get(long timeout, TimeUnit timeunit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<T>
InterruptedException
ExecutionException
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future<T>
Copyright © 2019. All rights reserved.