public void toData(DataOutput out) throws IOException {
   //    if (this.transientPort == 0) {
   //      InternalDistributedSystem.getLoggerI18n().warning(
   //          LocalizedStrings.DEBUG,
   //          "serializing a client ID with zero port: " + this.toString(),
   //          new Exception("Stack trace"));
   //    }
   DataSerializer.writeByteArray(this.identity, out);
   out.writeInt(this.uniqueId);
 }
 /**
  * Writes an object to a <code>Datautput</code>.
  *
  * @throws IOException If this serializer cannot write an object to <code>out</code>.
  * @see #fromData
  */
 @Override
 public void toData(DataOutput out) throws IOException {
   // Note: does not call super.toData what a HACK
   out.writeByte(_operation.getEventCode());
   int instantiatorCount = this.serializedInstantiators.length;
   out.writeInt(instantiatorCount);
   for (int i = 0; i < instantiatorCount; i++) {
     DataSerializer.writeByteArray(this.serializedInstantiators[i], out);
   }
   DataSerializer.writeObject(_membershipId, out);
   DataSerializer.writeObject(_eventIdentifier, out);
 }
 /**
  * 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 {
   DataSerializer.writeByteArray(this.key, out);
 }