- Enclosing class:
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
- See Also:
(Client client, Configuration config, com.ning.http.client.AsyncHttpClientConfig.Builder configBuilder)Customize the underlying asynchronous client configuration builder.
The configuration builder instance instance returned from the method will be subsequently used to build the configuration object that configures both the
GrizzlyAsyncHttpProviderGrizzly async client provider} as well as the underlying
async HTTP clientinstance 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.
- Async HTTP Client builder instance to be used to configure the underlying Grizzly provider and async HTTP
client instance. Typically, the method returns the same
configBuilderinstance that has been passed into the method as an input parameter, but it is not required to do so.