code: protected VirtualConnection writeInternal(long numBytes, TCPWriteCompletedCallback writeCallback, boolean forceQueue, int time) {
          int timeout = time;
          if (timeout == IMMED_TIMEOUT) {
              immediateTimeout();
              return null;
          } else if (timeout == ABORT_TIMEOUT) {
              abort();
              immediateTimeout();
              return null;
          }
  
          // if using channel timeout, reset to that value
          if (timeout == TCPRequestContext.USE_CHANNEL_TIMEOUT) {
              timeout = getConfig().getInactivityTimeout();
          }
          setIOAmount(numBytes);
          setLastIOAmt(0);
          setIODoneAmount(0);
          setWriteCompletedCallback(writeCallback);
          setForceQueue(forceQueue);
          setTimeoutTime(timeout);
  
          return processAsyncWriteRequest();
      }
docs: internal async write