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.
|
getAdvancedConfig, getAdvancedConfig, getClientConfiguration, getClientSideMonitoringConfigurationProvider, getCredentials, getEndpoint, getMetricsCollector, getMonitoringListener, getRegion, getRequestHandlers, getSubclass, getSyncClientParams, putAdvancedConfig, setClientConfiguration, setClientSideMonitoringConfigurationProvider, setCredentials, setEndpointConfiguration, setMetricsCollector, setMonitoringListener, setRegion, setRequestHandlers, withClientConfiguration, withClientSideMonitoringConfigurationProvider, withCredentials, withEndpointConfiguration, withMetricsCollector, withMonitoringListener, 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 © 2019. All rights reserved.