Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelled |
protected boolean |
done |
protected TimeScheduler2.MyTask |
next |
protected Runnable |
task |
Modifier | Constructor and Description |
---|---|
protected |
TimeScheduler2.MyTask(Runnable task) |
protected final Runnable task
protected volatile boolean cancelled
protected volatile boolean done
protected TimeScheduler2.MyTask next
protected TimeScheduler2.MyTask(Runnable task)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future
public Object get() throws InterruptedException, ExecutionException
get
in interface Future
InterruptedException
ExecutionException
public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future
InterruptedException
ExecutionException
TimeoutException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.