code: public final void increaseWrittenMessages(
              WriteRequest request, long currentTime) {
          Object message = request.getMessage();
          if (message instanceof IoBuffer) {
              IoBuffer b = (IoBuffer) message;
              if (b.hasRemaining()) {
                  return;
              }
          }
  
          writtenMessages++;
          lastWriteTime = currentTime;
          if (getService() instanceof AbstractIoService) {
              getService().getStatistics().increaseWrittenMessages(currentTime);
          }
  
          decreaseScheduledWriteMessages();
      }
docs: TODO Add method documentation