Uses of Class
com.yahoo.vespa.http.client.config.ConnectionParams.Builder
Packages that use ConnectionParams.Builder
-
Uses of ConnectionParams.Builder in com.yahoo.vespa.http.client.config
Methods in com.yahoo.vespa.http.client.config that return ConnectionParams.BuilderModifier and TypeMethodDescriptionConnectionParams.Builder.addDynamicHeader(String headerName, ConnectionParams.HeaderProvider provider) Adds a header provider for dynamic headers; headers where the value may change during a feeding session (e.g.Set custom headers to be usedConnectionParams.Builder.setCaCertificates(Path caCertificates) Set path a PEM file containing the CA certificates.ConnectionParams.Builder.setCertificateAndPrivateKey(Path privateKey, Path certificate) Set path to private key and certificate files.ConnectionParams.Builder.setConnectionTimeToLive(Duration connectionTimeToLive) Set the maximum time to live for persistent connectionsConnectionParams.Builder.setDryRun(boolean dryRun) Set to true to skip making network connections and instead let requests complete successfully with no effect.ConnectionParams.Builder.setHostnameVerifier(HostnameVerifier hostnameVerifier) Sets theHostnameVerifierfor the connection to the gateway when SSL is enabled for Endpoint.ConnectionParams.Builder.setMaxRetries(int maxRetries) Set how many times to retry sending an operation to a gateway when encountering transient problems.ConnectionParams.Builder.setMinTimeBetweenRetries(long minTimeBetweenRetries, TimeUnit unit) Set the min time between retries when temporarily failing against a gateway.ConnectionParams.Builder.setNumPersistentConnectionsPerEndpoint(int numPersistentConnectionsPerEndpoint) The number of connections between the http client and the gateways.ConnectionParams.Builder.setPrintTraceToStdErr(boolean printTraceToStdErr) If enabled will write internal trace to stderr.ConnectionParams.Builder.setProxyHost(String proxyHost) Sets the HTTP proxy host name to use.ConnectionParams.Builder.setProxyPort(int proxyPort) Sets the HTTP proxy host port to use.ConnectionParams.Builder.setRunThreads(boolean runThreads) Set to false to skip starting io threads, such that any operation must be driven by a calling thread.ConnectionParams.Builder.setSslContext(SSLContext sslContext) Sets the SSLContext for the connection to the gateway when SSL is enabled for Endpoint.ConnectionParams.Builder.setTraceEveryXOperation(int traceEveryXOperation) How often to trace messages in client.ConnectionParams.Builder.setTraceLevel(int traceLevel) Sets the trace level for tracing messagebus.ConnectionParams.Builder.setUseCompression(boolean useCompression) Set whether compression of document operations during communication to server should be enabled.ConnectionParams.Builder.setUseTlsConfigFromEnvironment(boolean useTlsConfigFromEnvironment) Use TLS configuration through the standard Vespa environment variables.