T - result typepublic class DefaultScheduledFuture<T> extends Object implements ScheduledFuture<T>
| Constructor and Description |
|---|
DefaultScheduledFuture() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
int |
compareTo(Delayed o) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
long |
getDelay(TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public int compareTo(Delayed o)
compareTo in interface Comparable<Delayed>0public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>falsepublic T get() throws InterruptedException, ExecutionException
get in interface Future<T>nullInterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>nullInterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2020. All rights reserved.