Package org.jppf.server.node
Class ObjectDeserializationTask
java.lang.Object
org.jppf.server.node.ObjectDeserializationTask
- All Implemented Interfaces:
Callable<ObjectDeserializationTask>
public class ObjectDeserializationTask
extends Object
implements Callable<ObjectDeserializationTask>
Instances of this class are used to deserialize objects from an
incoming message in parallel.
-
Constructor Summary
ConstructorsConstructorDescriptionObjectDeserializationTask(JPPFContainer cont, org.jppf.node.protocol.TaskBundle bundle, org.jppf.io.DataLocation dl, int index) Initialize this task with the specified data buffer. -
Method Summary
-
Constructor Details
-
ObjectDeserializationTask
public ObjectDeserializationTask(JPPFContainer cont, org.jppf.node.protocol.TaskBundle bundle, org.jppf.io.DataLocation dl, int index) Initialize this task with the specified data buffer.- Parameters:
cont- .bundle- the task bundle the data to deserialize is a part of.dl- the data read from the network connection, stored in a memory-sensitive location.index- index of the object to deserialize in the incoming IO message; used for debugging purposes.
-
-
Method Details
-
call
Execute this task.- Specified by:
callin interfaceCallable<ObjectDeserializationTask>- Returns:
- a deserialized object.
-
getIndex
public int getIndex()- Returns:
- the index of the object to deserialize in the incoming IO message; used for debugging purposes.
-
getObject
- Returns:
- the deserialized object.
-