Package com.oracle.bmc.http
Class ApacheConnectionPoolingClientConfigDecorator
- java.lang.Object
-
- com.oracle.bmc.http.ApacheConnectionPoolingClientConfigDecorator
-
- All Implemented Interfaces:
ClientConfigDecorator
public class ApacheConnectionPoolingClientConfigDecorator extends Object implements ClientConfigDecorator
A ClientConfigDecorator implementation that configure a connection pool for the client for a given ApacheConnectionPoolConfig.- See Also:
ApacheConnectionPoolConfig
-
-
Constructor Summary
Constructors Constructor Description ApacheConnectionPoolingClientConfigDecorator(ApacheConnectionPoolConfig config)Creates a new ApacheConnectionPoolingClientConfigDecorator object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomizeClientConfig(ClientConfig clientConfig)Configures the ClientConfig.org.apache.http.impl.conn.PoolingHttpClientConnectionManagergetPoolingHttpClientConnectionManager()Gets the underlying PoolingHttpClientConnectionManager for the ApacheConnectionPoolingClientConfigDecorator.
-
-
-
Constructor Detail
-
ApacheConnectionPoolingClientConfigDecorator
public ApacheConnectionPoolingClientConfigDecorator(@Nonnull ApacheConnectionPoolConfig config)
Creates a new ApacheConnectionPoolingClientConfigDecorator object.
-
-
Method Detail
-
getPoolingHttpClientConnectionManager
public org.apache.http.impl.conn.PoolingHttpClientConnectionManager getPoolingHttpClientConnectionManager()
Gets the underlying PoolingHttpClientConnectionManager for the ApacheConnectionPoolingClientConfigDecorator.If the client has yet to be initialized and configured, then the PoolingHttpClientConnectionManager can be null.
- Returns:
- the configured PoolingHttpClientConnectionManager
-
customizeClientConfig
public void customizeClientConfig(ClientConfig clientConfig)
Description copied from interface:ClientConfigDecoratorConfigures the ClientConfig.- Specified by:
customizeClientConfigin interfaceClientConfigDecorator- Parameters:
clientConfig- the client configuration
-
-