public void toData(DataOutput out) throws IOException {
    out.writeByte(op.ordinal);
    DataSerializer.writeObject(cbArg, out);
    if (op.isEntry()) {
      DataSerializer.writeObject(key, out);
      if (op.isUpdate() || op.isCreate()) {
        out.writeByte(deserializationPolicy);
        DataSerializer.writeByteArray(value, out);
      }
    }
  }
Creates an instance of a queued operation with the given data.
geode-core/src/main/java/org/apache/geode/internal/cache/QueuedOperation.java