Class Settings.ConnectionPoolSettings

java.lang.Object
org.apache.tinkerpop.gremlin.driver.Settings.ConnectionPoolSettings
Enclosing class:
Settings

public static class Settings.ConnectionPoolSettings extends Object
  • Field Details

    • enableSsl

      public boolean enableSsl
      Determines if SSL should be enabled or not. If enabled on the server then it must be enabled on the client.
    • keyStore

      public String keyStore
      JSSE keystore file path. Similar to setting JSSE property javax.net.ssl.keyStore.
    • keyStorePassword

      public String keyStorePassword
      JSSE keystore password. Similar to setting JSSE property javax.net.ssl.keyStorePassword.
    • trustStore

      public String trustStore
      JSSE truststore file path. Similar to setting JSSE property javax.net.ssl.trustStore.
    • trustStorePassword

      public String trustStorePassword
      JSSE truststore password. Similar to setting JSSE property javax.net.ssl.trustStorePassword.
    • keyStoreType

      public String keyStoreType
      JSSE keystore format. 'jks' or 'pkcs12'. Similar to setting JSSE property javax.net.ssl.keyStoreType.
    • trustStoreType

      public String trustStoreType
      JSSE truststore format. 'jks' or 'pkcs12'. Similar to setting JSSE property javax.net.ssl.trustStoreType.
    • sslEnabledProtocols

      public List<String> sslEnabledProtocols
      See Also:
    • sslCipherSuites

      public List<String> sslCipherSuites
      See Also:
    • sslSkipCertValidation

      public boolean sslSkipCertValidation
      If true, trust all certificates and do not perform any validation.
    • maxConnections

      public int maxConnections
      The maximum size of a connection pool for a Host. By default this is set to 128.
    • maxWaitForConnection

      public int maxWaitForConnection
      The amount of time in milliseconds to wait for a new connection before timing out where the default value is 16000.
    • maxWaitForClose

      public int maxWaitForClose
      The amount of time in milliseconds to wait the connection to close before timing out where the default value is 3000. This timeout allows for a delay to occur in waiting for remaining messages that may still be returning from the server while a Client.close() is called.
    • maxResponseHeaderBytes

      public int maxResponseHeaderBytes
      The maximum size in bytes allowed for the HTTP response headers. The default value is 8192.
    • reconnectInterval

      public int reconnectInterval
      The amount of time in milliseconds to wait before trying to reconnect to a dead host. The default value is 1000.
    • batchSize

      public int batchSize
      The default value for the per-request batch size used when a request does not specify one. This value is set to 64 by default.
    • validationRequest

      public String validationRequest
      A valid Gremlin script that can be used to test remote operations.
    • connectTimeout

      public int connectTimeout
      Duration of time in milliseconds that bounds TCP connection establishment (transport setup, including the SSL handshake). Beyond this duration an exception would be thrown if the connection is not established by then. The default value is 5000.
    • idleTimeout

      public long idleTimeout
      Time in milliseconds that the driver will allow a channel to not receive read or writes before it automatically closes. Note that while this value is to be provided as milliseconds it will resolve to second precision. Set this value to 0 to disable this feature.
    • keepAliveTime

      public long keepAliveTime
      Idle time in milliseconds before TCP keep-alive probes begin on an otherwise idle connection. When set to a positive value the SO_KEEPALIVE socket option is enabled and, where supported by the platform/JDK, the per-socket idle time is configured. The default value is 30000. Set this value to 0 to disable the feature.
    • readTimeout

      public long readTimeout
      Idle-read timeout in milliseconds that bounds the time between inbound response chunks. The default value is 0 which disables the feature.
    • compression

      public Compression compression
      The wire Compression algorithm negotiated with the server. The default is Compression.DEFLATE.
  • Constructor Details

    • ConnectionPoolSettings

      public ConnectionPoolSettings()