docs: public void write(DataOutput dataOutput) throws IOException {
          dataOutput.writeBoolean(isMaster);
          dataOutput.writeUTF(serverState);
          dataOutput.writeInt(totalUpdates);
          dataOutput.writeInt(streamId);
  
      }