docs: @SuppressWarnings("unchecked")
    public final Map<String, String> stats(InetSocketAddress address, long timeout)
        throws MemcachedException, InterruptedException, TimeoutException {
      if (address == null) {
        throw new IllegalArgumentException("Null inetSocketAddress");
      }
      CountDownLatch latch = new CountDownLatch(1);
  
      Queue<Session> sessionQueue = this.connector.getSessionByAddress(address);
      if (sessionQueue == null || sessionQueue.peek() == null) {
        throw new MemcachedException(
            "could not find session for " + SystemUtils.getRawAddress(address) + ":"
                + address.getPort() + ",maybe it have not been connected");
      }
      Command command = this.commandFactory.createStatsCommand(address, latch, null);
      final Session session = sessionQueue.peek();
      session.write(command);
      this.latchWait(command, timeout, session);
      return (Map<String, String>) command.getResult();
    }