code: public void write(DataOutput dataOutput) throws IOException {
          dataOutput.writeBoolean(isMaster);
          dataOutput.writeUTF(serverState);
          dataOutput.writeInt(totalUpdates);
          dataOutput.writeInt(streamId);
  
      }
docs: Write the subscriber state to the given {@link DataInput}
  in the order of:
  isMaster
  serverState
  totalUpdates
  streamId
  @param dataOutput the data output to write to
  @throws IOException