Package org.jgroups.blocks.executor
Class Executions.StreamableCallable
java.lang.Object
org.jgroups.blocks.executor.Executions.StreamableCallable
- All Implemented Interfaces:
Callable<Object>,Streamable
- Enclosing class:
Executions
protected static class Executions.StreamableCallable
extends Object
implements Callable<Object>, Streamable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStreamableCallable(Class<? extends Callable<?>> classCallable, byte constructorNumber, Object... args) -
Method Summary
Modifier and TypeMethodDescriptioncall()voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedtoString()voidwriteTo(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
_classCallable
-
_constructorNumber
protected short _constructorNumber -
_args
-
-
Constructor Details
-
StreamableCallable
public StreamableCallable() -
StreamableCallable
-
-
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
-
toString
-