Subclass
- Concrete builder type, used for better fluent methods.@NotThreadSafe public abstract class AwsAsyncClientBuilder<Subclass extends AwsAsyncClientBuilder,TypeToBuild> extends AwsClientBuilder<Subclass,TypeToBuild>
Modifier and Type | Class and Description |
---|---|
protected class |
AwsAsyncClientBuilder.AsyncBuilderParams
Presents a view of the builder to be used in the async client constructor.
|
AwsClientBuilder.EndpointConfiguration, AwsClientBuilder.SyncBuilderParams
Modifier | Constructor and Description |
---|---|
protected |
AwsAsyncClientBuilder(ClientConfigurationFactory clientConfigFactory) |
protected |
AwsAsyncClientBuilder(ClientConfigurationFactory clientConfigFactory,
AwsRegionProvider regionProvider) |
Modifier and Type | Method and Description |
---|---|
TypeToBuild |
build()
Builds a client with the configure properties.
|
protected abstract TypeToBuild |
build(AwsAsyncClientParams asyncClientParams) |
protected AwsAsyncClientParams |
getAsyncClientParams() |
ExecutorFactory |
getExecutorFactory() |
void |
setExecutorFactory(ExecutorFactory executorFactory)
Sets a custom executor service factory to use for the async clients.
|
Subclass |
withExecutorFactory(ExecutorFactory executorFactory)
Sets a custom executor service factory to use for the async clients.
|
getClientConfiguration, getCredentials, getEndpoint, getMetricsCollector, getRegion, getRequestHandlers, getSubclass, getSyncClientParams, setClientConfiguration, setCredentials, setEndpointConfiguration, setMetricsCollector, setRegion, setRequestHandlers, withClientConfiguration, withCredentials, withEndpointConfiguration, withIAMEndpoint, withIAMMaxRetry, withIAMTokenRefresh, withMetricsCollector, withRegion, withRegion, withRequestHandlers
protected AwsAsyncClientBuilder(ClientConfigurationFactory clientConfigFactory)
protected AwsAsyncClientBuilder(ClientConfigurationFactory clientConfigFactory, AwsRegionProvider regionProvider)
public final ExecutorFactory getExecutorFactory()
ExecutorFactory
currently configured by the client.public final void setExecutorFactory(ExecutorFactory executorFactory)
executorFactory
- Factory supplying new instances of ExecutorService
public final Subclass withExecutorFactory(ExecutorFactory executorFactory)
executorFactory
- Factory supplying new instances of ExecutorService
public final TypeToBuild build()
AwsClientBuilder
build
in class AwsClientBuilder<Subclass extends AwsAsyncClientBuilder,TypeToBuild>
protected abstract TypeToBuild build(AwsAsyncClientParams asyncClientParams)
protected final AwsAsyncClientParams getAsyncClientParams()
Copyright © 2024. All rights reserved.