Package org.jgroups.blocks.executor
Class ExecutionService.RunnableAdapter<T>
java.lang.Object
org.jgroups.blocks.executor.ExecutionService.RunnableAdapter<T>
- All Implemented Interfaces:
Callable<T>,Streamable
- Enclosing class:
ExecutionService
protected static final class ExecutionService.RunnableAdapter<T>
extends Object
implements Callable<T>, Streamable
This is copied from class which
contains RunnableAdapter. However that adapter isn't serializable, and
is final and package level so we can' reference.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoidwriteTo(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
task
-
result
-
-
Constructor Details
-
RunnableAdapter
protected RunnableAdapter() -
RunnableAdapter
-
-
Method Details
-
call
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOExceptionIllegalAccessExceptionInstantiationException
-