public ZooKeeperUpdatingListenerBuilder connectTimeout ( Duration connectTimeout ) { requireNonNull ( connectTimeout , "connectTimeout" ) ; checkArgument ( ! connectTimeout . isZero ( ) && ! connectTimeout . isNegative ( ) , "connectTimeout: %s (expected: > 0)" , connectTimeout ) ; return connectTimeoutMillis ( connectTimeout . toMillis ( ) ) ; }
Sets the connect timeout .