Class ConnectionParams


  • @Immutable
    public final class ConnectionParams
    extends java.lang.Object
    Parameters given to a SessionFactory when creating Sessions. The parameters contained in this class are related to the connections from the node running the Session to the Vespa clusters. This class is immutable and has no public constructor - to instantiate one, use a ConnectionParams.Builder.
    Author:
    Einar M R Rosenvinge
    • 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()
      • 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()
      • getTraceLevel

        public int getTraceLevel()
      • getTraceEveryXOperation

        public int getTraceEveryXOperation()
      • getPrintTraceToStdErr

        public boolean getPrintTraceToStdErr()