code: public void setDefaultTimeout(Duration timeout) {
  
          LettuceAssert.notNull(timeout, "Timeout duration must not be null");
          LettuceAssert.isTrue(!timeout.isNegative(), "Timeout duration must be greater or equal to zero");
  
          this.timeout = 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, must not be {@literal null}.
  @since 5.0