SubclassT
- Concrete builder type, used for better fluent methods.@NotThreadSafe public abstract class AwsAsyncClientBuilder<SubclassT extends AwsAsyncClientBuilder,TypeToBuildT> extends AwsClientBuilder<SubclassT,TypeToBuildT>
AwsClientBuilder.EndpointConfiguration
Modifier and Type | Method | Description |
---|---|---|
TypeToBuildT |
build() |
Builds a client with the configure properties.
|
ExecutorFactory |
getExecutorFactory() |
|
void |
setExecutorFactory(ExecutorFactory executorFactory) |
Sets a custom executor service factory to use for the async clients.
|
SubclassT |
withExecutorFactory(ExecutorFactory executorFactory) |
Sets a custom executor service factory to use for the async clients.
|
getClientConfiguration, getCredentials, getEndpoint, getEndpointPrefix, getMetricsCollector, getRegion, getRequestHandlers, getServiceName, setClientConfiguration, setCredentials, setEndpointConfiguration, setMetricsCollector, setRegion, setRequestHandlers, withClientConfiguration, withCredentials, withEndpointConfiguration, withMetricsCollector, withRegion, withRequestHandlers
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 SubclassT withExecutorFactory(ExecutorFactory executorFactory)
executorFactory
- Factory supplying new instances of ExecutorService
public final TypeToBuildT build()
AwsClientBuilder
build
in class AwsClientBuilder<SubclassT extends AwsAsyncClientBuilder,TypeToBuildT>
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.