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.Modifier and Type | Field and Description |
---|---|
protected T |
result |
protected java.lang.Runnable |
task |
Modifier | Constructor and Description |
---|---|
protected |
ExecutionService.RunnableAdapter() |
protected |
ExecutionService.RunnableAdapter(java.lang.Runnable task,
T result) |
Modifier and Type | Method and Description |
---|---|
T |
call() |
void |
readFrom(java.io.DataInputStream 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.DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected java.lang.Runnable task
protected T result
protected ExecutionService.RunnableAdapter()
protected ExecutionService.RunnableAdapter(java.lang.Runnable task, T result)
public void writeTo(java.io.DataOutputStream out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public void readFrom(java.io.DataInputStream in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
Streamable
readFrom
in interface Streamable
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.