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(@NonNull ApacheConnectionPoolConfig config)
Creates a new
ApacheConnectionPoolingClientConfigDecorator object. |
Modifier and Type | Method and Description |
---|---|
void |
customizeClientConfig(org.glassfish.jersey.client.ClientConfig clientConfig) |
org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
getPoolingHttpClientConnectionManager()
Gets the underlying
PoolingHttpClientConnectionManager for the ApacheConnectionPoolingClientConfigDecorator . |
public ApacheConnectionPoolingClientConfigDecorator(@NonNull @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)
customizeClientConfig
in interface ClientConfigDecorator
Copyright © 2016–2019. All rights reserved.