public static interface GrizzlyConnectorProvider.AsyncClientCustomizer
An implementation of async client customizer can be
registered in a
When a connector instance is then created, the customizer is invoked to update the
underlying async client configuration builder before the actual
configuration instance is built and used to create the async client instance.
The customizer thus provides a way how to configure parts of the underlying async client SPI that are not directly
exposed in the
|Modifier and Type||Method and Description|
Customize the underlying asynchronous client configuration builder.
com.ning.http.client.AsyncHttpClientConfig.Builder customize(jakarta.ws.rs.client.Client client, jakarta.ws.rs.core.Configuration config, com.ning.http.client.AsyncHttpClientConfig.Builder configBuilder)
The configuration builder instance instance returned from the method will be subsequently used to build the
configuration object that configures both the
Grizzly async client provider} as well as the underlying
client instance itself.
Note that any JAX-RS and Jersey specific configuration updates on the configuration builder happen before this method is invoked. As such, changes made to the configuration builder may override or cancel the effect of the JAX-RS and Jersey specific configuration changes. As such any configuration changes should be made with care and implementers should be aware of possible side effect of their changes.
client- JAX-RS client for which the connector is being created.
config- JAX-RS configuration that was used to initialize connector's configuration.
configBuilder- Async HTTP Client configuration builder that has been initialized based on the JAX-RS configuration.
configBuilderinstance that has been passed into the method as an input parameter, but it is not required to do so.
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.