public void serialize(GossipDigestAck gDigestAckMessage, DataOutput dos, int version)
     throws IOException {
   GossipDigestSerializationHelper.serialize(gDigestAckMessage.gDigestList, dos, version);
   if (version <= MessagingService.VERSION_11) dos.writeBoolean(true); // 0.6 compatibility
   dos.writeInt(gDigestAckMessage.epStateMap.size());
   for (Map.Entry<InetAddress, EndpointState> entry : gDigestAckMessage.epStateMap.entrySet()) {
     InetAddress ep = entry.getKey();
     CompactEndpointSerializationHelper.serialize(ep, dos);
     EndpointState.serializer.serialize(entry.getValue(), dos, version);
   }
 }
 public void serialize(GossipDigestAckMessage gDigestAckMessage, DataOutputStream dos)
     throws IOException {
   GossipDigestSerializationHelper.serialize(gDigestAckMessage.gDigestList_, dos);
   dos.writeBoolean(true); // 0.6 compatibility
   EndpointStatesSerializationHelper.serialize(gDigestAckMessage.epStateMap_, dos);
 }
 public void serialize(GossipDigestSynMessage gDigestSynMessage, DataOutputStream dos)
     throws IOException {
   dos.writeUTF(gDigestSynMessage.clusterId_);
   GossipDigestSerializationHelper.serialize(gDigestSynMessage.gDigests_, dos);
 }