Package interlok.http.apache.async
Class CompositeAsyncClientBuilder
java.lang.Object
interlok.http.apache.async.CompositeAsyncClientBuilder
- All Implemented Interfaces:
HttpAsyncClientBuilderConfig
@ComponentProfile(since="4.5.0",
summary="Allows you to configure additional configuration when building the HttpAsyncClient")
public class CompositeAsyncClientBuilder
extends Object
implements HttpAsyncClientBuilderConfig
HttpAsyncClientBuilderConfig implementation that wraps a list of implementations.- See Also:
In the adapter configuration file this class is aliased as apache-http-composite-async-client-builder which is the preferred alternative to the fully qualified classname when building your configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.impl.nio.client.HttpAsyncClientBuilderconfigure(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) Do any additional configuration.The list of builders that will be used in turn to configure theHttpAsyncClientBuilder.voidsetBuilders(List<HttpAsyncClientBuilderConfig> builders) The list of builders that will be used in turn to configure theHttpAsyncClientBuilder.<T extends CompositeAsyncClientBuilder>
TwithBuilders(HttpAsyncClientBuilderConfig... builders) <T extends CompositeAsyncClientBuilder>
TwithBuilders(List<HttpAsyncClientBuilderConfig> builders)
-
Constructor Details
-
CompositeAsyncClientBuilder
public CompositeAsyncClientBuilder()
-
-
Method Details
-
withBuilders
public <T extends CompositeAsyncClientBuilder> T withBuilders(HttpAsyncClientBuilderConfig... builders) -
withBuilders
public <T extends CompositeAsyncClientBuilder> T withBuilders(List<HttpAsyncClientBuilderConfig> builders) -
configure
public org.apache.http.impl.nio.client.HttpAsyncClientBuilder configure(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) throws Exception Description copied from interface:HttpAsyncClientBuilderConfigDo any additional configuration.- Specified by:
configurein interfaceHttpAsyncClientBuilderConfig- Parameters:
builder- the existing builder- Returns:
- a reconfigured builder.
- Throws:
Exception
-
getBuilders
The list of builders that will be used in turn to configure theHttpAsyncClientBuilder. -
setBuilders
The list of builders that will be used in turn to configure theHttpAsyncClientBuilder.
-