/** * Post 7.1, if changes are made to this method make sure that it is backwards compatible by * creating toDataPreXX methods. Also make sure that the callers to this method are backwards * compatible by creating toDataPreXX methods for them even if they are not changed. <br> * Callers for this method are: <br> * SendQueueMessage.toData(DataOutput) <br> */ public void toData(DataOutput out) throws IOException { out.writeByte(this.op.ordinal); DataSerializer.writeObject(this.cbArg, out); if (this.op.isEntry()) { DataSerializer.writeObject(this.key, out); if (this.op.isUpdate() || this.op.isCreate()) { out.writeByte(this.deserializationPolicy); if (this.deserializationPolicy != DistributedCacheOperation.DESERIALIZATION_POLICY_EAGER) { DataSerializer.writeByteArray(this.value, out); } else { DataSerializer.writeObject(this.valueObj, out); } } } }
@Override public void toData(DataOutput out) throws IOException { super.toData(out); out.writeInt(this.id); DataSerializer.writeObject(this.healthCode, out); }