Class ObjectSerializationTask

java.lang.Object
org.jppf.server.node.ObjectSerializationTask
All Implemented Interfaces:
Callable<org.jppf.io.DataLocation>

public class ObjectSerializationTask extends Object implements Callable<org.jppf.io.DataLocation>
The goal of this class is to serialize an object before sending it back to the server, and catch an eventual exception.
  • Constructor Details

    • ObjectSerializationTask

      public ObjectSerializationTask(Object object, JPPFContainer cont, org.jppf.node.protocol.TaskBundle bundle, int submitOrder)
      Initialize this task with the specified data buffer.
      Parameters:
      object - the object to serialize.
      cont - container used to serialize the object.
      bundle - the task bundle the data to serialize is a part of.
      submitOrder - this task's submission order.
  • Method Details

    • call

      public org.jppf.io.DataLocation call()
      Specified by:
      call in interface Callable<org.jppf.io.DataLocation>