Deprecated
use ApacheClientProperties instead.
For clients that should not buffer requests into memory:
ObjectStorageClient nonBufferingObjectStorageClient = ObjectStorageClient .builder()
.clientConfigurator(builder -> { builder.property(StandardClientProperties.BUFFER_REQUEST,
false); builder.property(ApacheClientProperties.RETRY_HANDLER, null);
builder.property(ApacheClientProperties.REUSE_STRATEGY, null); }) .region(Region.US_PHOENIX_1)
.build(provider);
For clients that should buffer requests into memory:
IdentityClient bufferingIdentityClient = IdentityClient .builder() .clientConfigurator(builder
-> { builder.property(StandardClientProperties.BUFFER_REQUEST, true);
builder.property(ApacheClientProperties.RETRY_HANDLER, null);
builder.property(ApacheClientProperties.REUSE_STRATEGY, null); }) .region(Region.US_PHOENIX_1)
.build(provider);
Also consider using com.oracle.bmc.http.client.jersey.apacheconfigurator.ApacheConfigurator from the oci-java-sdk-addons-apache-configurator-jersey add-on module; or com.oracle.bmc.http.client.jersey3.apacheconfigurator.ApacheConfigurator from the oci-java-sdk-addons-apache-configurator-jersey3 add-on module.
| Access | Constructor and Description |
|---|---|
| private |
| ApacheConfigurator | back to summary |
|---|---|
| private ApacheConfigurator() | |