protected static final class ExecutionService.RunnableAdapter<T> extends Object implements 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 Runnable |
task |
Modifier | Constructor and Description |
---|---|
protected |
ExecutionService.RunnableAdapter() |
protected |
ExecutionService.RunnableAdapter(Runnable task,
T result) |
Modifier and Type | Method and Description |
---|---|
T |
call() |
void |
readFrom(DataInputStream in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
writeTo(DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
public void writeTo(DataOutputStream out) throws IOException
Streamable
writeTo
in interface Streamable
IOException
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
Streamable
readFrom
in interface Streamable
IOException
IllegalAccessException
InstantiationException
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.