Using PDX Serialization with Delta Propagation

Using PDX Serialization with Delta Propagation

To use delta propagation with PDX serialization, you must implement the Delta interface methods.

Users can include delta propagation support with PDX serialization by implementing the Delta interface methods. However, using delta propagation with PDX will require the users to implement Java side classes and the objects will remain in deserialized form at all times on the server and you will lose one of the main benefits of PDX.

The following code snippet is a sample implementation of the Delta interface methods for using with PDX serialization.
class PdxWithDelta : public PdxSerializable, public Delta

  bool hasDelta();
  void toDelta(DataOutput& output);
  void fromDelta(DataInput& input);
  DeltaPtr clone();

// other PdxSerializable methods here...