protected static class TimeScheduler2.MyTask
extends java.lang.Object
implements java.util.concurrent.Future, java.lang.Runnable
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
cancelled |
protected boolean |
done |
protected TimeScheduler2.MyTask |
next |
protected java.lang.Runnable |
task |
限定符 | 构造器和说明 |
---|---|
protected |
TimeScheduler2.MyTask(java.lang.Runnable task) |
protected final java.lang.Runnable task
protected volatile boolean cancelled
protected volatile boolean done
protected TimeScheduler2.MyTask next
public boolean cancel(boolean mayInterruptIfRunning)
cancel
在接口中 java.util.concurrent.Future
public boolean isCancelled()
isCancelled
在接口中 java.util.concurrent.Future
public boolean isDone()
isDone
在接口中 java.util.concurrent.Future
public java.lang.Object get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
get
在接口中 java.util.concurrent.Future
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public java.lang.Object get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
get
在接口中 java.util.concurrent.Future
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void run()
run
在接口中 java.lang.Runnable
public java.lang.String toString()
toString
在类中 java.lang.Object