@Deprecated public class ApacheConfigurator extends Object
This class is deprecated and just left here to document the proper way to configure the Apache Connector now.
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.
Copyright © 2016–2024. All rights reserved.