+ "queryText={}", uri, connectionPolicy.getConnectionMode(), consistencyLevel.toString(), connectionPolicy.getRetryOptions().getMaxRetryAttemptsOnThrottledRequests(),
void setStoreModel(StoreModel storeModel) { if (this.connectionPolicy.getConnectionMode() == ConnectionMode.DirectHttps) { this.storeModel = storeModel; } }
void setGatewayProxyOverride(GatewayProxy proxyOverride) { this.gatewayProxy = proxyOverride; if (this.connectionPolicy.getConnectionMode() != ConnectionMode.DirectHttps) { this.storeModel = proxyOverride; } }
if (this.connectionPolicy.getConnectionMode() == ConnectionMode.DirectHttps) { throw new UnsupportedOperationException("Direct Https is not supported");
public AsyncDocumentClient build() { ifThrowIllegalArgException(this.serviceEndpoint == null, "cannot build client without service endpoint"); ifThrowIllegalArgException(this.masterKey == null, "cannot build client without masterKey"); if (connectionPolicy != null && ConnectionMode.DirectHttps != connectionPolicy.getConnectionMode()) { return new RxDocumentClientImpl(serviceEndpoint, masterKey, connectionPolicy, desiredConsistencyLevel, eventLoopSize, separateComputationPoolSize); } else { ifThrowIllegalArgException(this.eventLoopSize != -1, "eventLoopSize is not applicable in direct mode"); ifThrowIllegalArgException(this.separateComputationPoolSize != -1, "separateComputationPoolSize is not applicable in direct mode"); // fall back to RX wrapper with blocking IO return new RxWrapperDocumentClientImpl( new DocumentClient(serviceEndpoint.toString(), masterKey, connectionPolicy, desiredConsistencyLevel)); } } }
if (this.connectionPolicy.getConnectionMode() == ConnectionMode.DirectHttps) { if (this.globalAddressResolver == null) { this.globalAddressResolver = new GlobalAddressResolver(this.serviceEndpoint.toString(),