Class Settings.ConnectionPoolSettings
java.lang.Object
org.apache.tinkerpop.gremlin.driver.Settings.ConnectionPoolSettings
- Enclosing class:
- Settings
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe default value for the per-request batch size used when a request does not specify one.The wireCompressionalgorithm negotiated with the server.intDuration of time in milliseconds that bounds TCP connection establishment (transport setup, including the SSL handshake).booleanDetermines if SSL should be enabled or not.longTime in milliseconds that the driver will allow a channel to not receive read or writes before it automatically closes.longIdle time in milliseconds before TCP keep-alive probes begin on an otherwise idle connection.JSSE keystore file path.JSSE keystore password.JSSE keystore format.intThe maximum size of a connection pool for aHost.intThe maximum size in bytes allowed for the HTTP response headers.intThe amount of time in milliseconds to wait the connection to close before timing out where the default value is 3000.intThe amount of time in milliseconds to wait for a new connection before timing out where the default value is 16000.longIdle-read timeout in milliseconds that bounds the time between inbound response chunks.intThe amount of time in milliseconds to wait before trying to reconnect to a dead host.booleanIf true, trust all certificates and do not perform any validation.JSSE truststore file path.JSSE truststore password.JSSE truststore format.A valid Gremlin script that can be used to test remote operations. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
enableSsl
public boolean enableSslDetermines if SSL should be enabled or not. If enabled on the server then it must be enabled on the client. -
keyStore
JSSE keystore file path. Similar to setting JSSE propertyjavax.net.ssl.keyStore. -
keyStorePassword
JSSE keystore password. Similar to setting JSSE propertyjavax.net.ssl.keyStorePassword. -
trustStore
JSSE truststore file path. Similar to setting JSSE propertyjavax.net.ssl.trustStore. -
trustStorePassword
JSSE truststore password. Similar to setting JSSE propertyjavax.net.ssl.trustStorePassword. -
keyStoreType
JSSE keystore format. 'jks' or 'pkcs12'. Similar to setting JSSE propertyjavax.net.ssl.keyStoreType. -
trustStoreType
JSSE truststore format. 'jks' or 'pkcs12'. Similar to setting JSSE propertyjavax.net.ssl.trustStoreType. -
sslEnabledProtocols
- See Also:
-
sslCipherSuites
- See Also:
-
sslSkipCertValidation
public boolean sslSkipCertValidationIf true, trust all certificates and do not perform any validation. -
maxConnections
public int maxConnectionsThe maximum size of a connection pool for aHost. By default this is set to 128. -
maxWaitForConnection
public int maxWaitForConnectionThe amount of time in milliseconds to wait for a new connection before timing out where the default value is 16000. -
maxWaitForClose
public int maxWaitForCloseThe 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 aClient.close()is called. -
maxResponseHeaderBytes
public int maxResponseHeaderBytesThe maximum size in bytes allowed for the HTTP response headers. The default value is 8192. -
reconnectInterval
public int reconnectIntervalThe amount of time in milliseconds to wait before trying to reconnect to a dead host. The default value is 1000. -
batchSize
public int batchSizeThe 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
A valid Gremlin script that can be used to test remote operations. -
connectTimeout
public int connectTimeoutDuration 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 idleTimeoutTime 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 keepAliveTimeIdle time in milliseconds before TCP keep-alive probes begin on an otherwise idle connection. When set to a positive value theSO_KEEPALIVEsocket 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 to0to disable the feature. -
readTimeout
public long readTimeoutIdle-read timeout in milliseconds that bounds the time between inbound response chunks. The default value is 0 which disables the feature. -
compression
The wireCompressionalgorithm negotiated with the server. The default isCompression.DEFLATE.
-
-
Constructor Details
-
ConnectionPoolSettings
public ConnectionPoolSettings()
-