protected static final class ExecutionService.RunnableAdapter<T> extends java.lang.Object implements java.util.concurrent.Callable<T>, Streamable
Executors
class which
contains RunnableAdapter. However that adapter isn't serializable, and
is final and package level so we can' reference.限定符 | 构造器和说明 |
---|---|
|
ExecutionService.RunnableAdapter() |
protected |
ExecutionService.RunnableAdapter(java.lang.Runnable task,
T result) |
限定符和类型 | 方法和说明 |
---|---|
T |
call() |
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected java.lang.Runnable task
protected T result
public ExecutionService.RunnableAdapter()
protected ExecutionService.RunnableAdapter(java.lang.Runnable task, T result)
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
writeTo
在接口中 Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
readFrom
在接口中 Streamable
java.lang.Exception