ConnectionPolicy.setEnableEndpointDiscovery(boolean enableEndpointDiscovery) 方法

定义

Sets the flag to enable endpoint discovery for geo-replicated database accounts.

When EnableEndpointDiscovery is true, the SDK will automatically discover the current write and read regions to ensure requests are sent to the correct region based on the capability of the region and the user's preference.

The default value for this property is true indicating endpoint discovery is enabled.

public void setEnableEndpointDiscovery(boolean enableEndpointDiscovery)

参数

enableEndpointDiscovery
boolean

true if EndpointDiscovery is enabled.

适用于