code: @Deprecated
      public void setDefaultTimeout(long timeout, TimeUnit unit) {
          setDefaultTimeout(Duration.ofNanos(unit.toNanos(timeout)));
      }
docs: Set the default timeout for connections created by this client. The timeout applies to connection attempts and
  non-blocking commands.
  
  @param timeout Default connection timeout.
  @param unit Unit of time for the timeout.
  @deprecated since 5.0, use {@link #setDefaultTimeout(Duration)}.