Uses of Class
com.azure.cosmos.DirectConnectionConfig
Packages that use DirectConnectionConfig
Package
Description
This package provides interfaces for interacting with Azure Cosmos DB.
-
Uses of DirectConnectionConfig in com.azure.cosmos
Methods in com.azure.cosmos that return DirectConnectionConfigModifier and TypeMethodDescriptionstatic DirectConnectionConfig
DirectConnectionConfig.getDefaultConfig()
Gets the default DIRECT connection configuration.DirectConnectionConfig.setConnectionEndpointRediscoveryEnabled
(boolean connectionEndpointRediscoveryEnabled) Sets a value indicating whether Direct TCP connection endpoint rediscovery should be enabled.DirectConnectionConfig.setConnectTimeout
(Duration connectTimeout) Sets the connect timeout for direct client, represents timeout for establishing connections with an endpoint.DirectConnectionConfig.setIdleConnectionTimeout
(Duration idleConnectionTimeout) Sets the idle connection timeout Default value isDuration.ZERO
Direct client doesn't close a single connection to an endpoint by default unless specified.DirectConnectionConfig.setIdleEndpointTimeout
(Duration idleEndpointTimeout) Sets the idle endpoint timeout Default value is 1 hour.DirectConnectionConfig.setMaxConnectionsPerEndpoint
(int maxConnectionsPerEndpoint) Sets the max connections per endpoint This represents the size of connection pool for a specific endpoint Default value is 130DirectConnectionConfig.setMaxRequestsPerConnection
(int maxRequestsPerConnection) Sets the max requests per connection This represents the number of requests that will be queued on a single connection for a specific endpoint Default value is 30DirectConnectionConfig.setNetworkRequestTimeout
(Duration networkRequestTimeout) Sets the network request timeout interval (time to wait for response from network peer).Methods in com.azure.cosmos with parameters of type DirectConnectionConfigModifier and TypeMethodDescriptionCosmosClientBuilder.directMode
(DirectConnectionConfig directConnectionConfig) Sets the DIRECT connection configuration to be used.CosmosClientBuilder.directMode
(DirectConnectionConfig directConnectionConfig, GatewayConnectionConfig gatewayConnectionConfig) Sets the DIRECT connection configuration to be used.