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 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:
      call in interface Callable<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

      public Object getObject()
      Returns:
      the deserialized object.