code: synchronized void add(Write write) {
          Exceptions.checkNotClosed(this.closed, this);
          this.writes.addLast(write);
          this.totalLength += write.data.getLength();
          write.setQueueAddedTimestamp(this.timeSupplier.get());
      }
docs: Adds a new Write to the end of the queue.
  
  @param write The write to add.