Class ConnectionParams
- java.lang.Object
-
- com.yahoo.vespa.http.client.config.ConnectionParams
-
public final class ConnectionParams extends java.lang.Object
Connection level parameters. This class is immutable and has no public constructor - to instantiate one, use aConnectionParams.Builder
.- Author:
- Einar M R Rosenvinge
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConnectionParams.Builder
Builder forConnectionParams
.static interface
ConnectionParams.HeaderProvider
A header provider that provides a header value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.Path
getCaCertificates()
java.nio.file.Path
getCertificate()
java.time.Duration
getConnectionTimeToLive()
java.util.Map<java.lang.String,ConnectionParams.HeaderProvider>
getDynamicHeaders()
java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.String>>
getHeaders()
javax.net.ssl.HostnameVerifier
getHostnameVerifier()
int
getMaxRetries()
long
getMinTimeBetweenRetriesMs()
int
getNumPersistentConnectionsPerEndpoint()
boolean
getPrintTraceToStdErr()
java.nio.file.Path
getPrivateKey()
java.lang.String
getProxyHost()
int
getProxyPort()
javax.net.ssl.SSLContext
getSslContext()
int
getTraceEveryXOperation()
int
getTraceLevel()
boolean
getUseCompression()
boolean
isDryRun()
boolean
runThreads()
boolean
useTlsConfigFromEnvironment()
-
-
-
Method Detail
-
getSslContext
public javax.net.ssl.SSLContext getSslContext()
-
getHostnameVerifier
public javax.net.ssl.HostnameVerifier getHostnameVerifier()
-
getHeaders
public java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.String>> getHeaders()
-
getDynamicHeaders
public java.util.Map<java.lang.String,ConnectionParams.HeaderProvider> getDynamicHeaders()
-
getNumPersistentConnectionsPerEndpoint
public int getNumPersistentConnectionsPerEndpoint()
-
getProxyHost
public java.lang.String getProxyHost()
-
getProxyPort
public int getProxyPort()
-
getUseCompression
public boolean getUseCompression()
-
getMaxRetries
public int getMaxRetries()
-
getMinTimeBetweenRetriesMs
public long getMinTimeBetweenRetriesMs()
-
isDryRun
public boolean isDryRun()
-
runThreads
public boolean runThreads()
-
getTraceLevel
public int getTraceLevel()
-
getTraceEveryXOperation
public int getTraceEveryXOperation()
-
getPrintTraceToStdErr
public boolean getPrintTraceToStdErr()
-
useTlsConfigFromEnvironment
public boolean useTlsConfigFromEnvironment()
-
getConnectionTimeToLive
public java.time.Duration getConnectionTimeToLive()
-
getPrivateKey
public java.nio.file.Path getPrivateKey()
-
getCertificate
public java.nio.file.Path getCertificate()
-
getCaCertificates
public java.nio.file.Path getCaCertificates()
-
-