public class ApacheConnectionPoolingClientConfigDecorator extends Object implements ClientConfigDecorator
A ClientConfigDecorator implementation that configure a connection pool for the client for a given
ApacheConnectionPoolConfig.
ApacheConnectionPoolConfig| Constructor and Description |
|---|
ApacheConnectionPoolingClientConfigDecorator(ApacheConnectionPoolConfig config)
Creates a new
ApacheConnectionPoolingClientConfigDecorator object. |
| Modifier and Type | Method and Description |
|---|---|
void |
customizeClientConfig(org.glassfish.jersey.client.ClientConfig clientConfig)
Configures the
ClientConfig. |
org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
getPoolingHttpClientConnectionManager()
Gets the underlying
PoolingHttpClientConnectionManager for the
ApacheConnectionPoolingClientConfigDecorator. |
public ApacheConnectionPoolingClientConfigDecorator(@Nonnull ApacheConnectionPoolConfig config)
Creates a new ApacheConnectionPoolingClientConfigDecorator object.
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.
public void customizeClientConfig(org.glassfish.jersey.client.ClientConfig clientConfig)
ClientConfigDecoratorConfigures the ClientConfig.
customizeClientConfig in interface ClientConfigDecoratorclientConfig - the client configurationCopyright © 2016–2022. All rights reserved.