| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cancelled |
protected boolean |
done |
protected TimeScheduler2.MyTask |
next |
protected Runnable |
task |
| Modifier | Constructor and Description |
|---|---|
protected |
MyTask(Runnable task) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Object |
get() |
Object |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
run() |
String |
toString() |
protected final Runnable task
protected volatile boolean cancelled
protected volatile boolean done
protected TimeScheduler2.MyTask next
protected MyTask(Runnable task)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Futurepublic Object get() throws InterruptedException, ExecutionException
get in interface FutureInterruptedExceptionExecutionExceptionpublic Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface FutureInterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.