@Factory public class S3ClientFactory extends AwsClientFactory<software.amazon.awssdk.services.s3.S3ClientBuilder,software.amazon.awssdk.services.s3.S3AsyncClientBuilder,software.amazon.awssdk.services.s3.S3Client,software.amazon.awssdk.services.s3.S3AsyncClient>
credentialsProvider, regionProvider
Constructor and Description |
---|
S3ClientFactory(software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain credentialsProvider,
software.amazon.awssdk.regions.providers.AwsRegionProviderChain regionProvider,
S3ConfigurationProperties configuration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
software.amazon.awssdk.services.s3.S3AsyncClientBuilder |
asyncBuilder(software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient)
Configures the builder so that it uses the appropriate HTTP client, credentials and region providers.
|
software.amazon.awssdk.services.s3.S3AsyncClient |
asyncClient(software.amazon.awssdk.services.s3.S3AsyncClientBuilder builder)
Creates the async client.
|
protected software.amazon.awssdk.services.s3.S3AsyncClientBuilder |
createAsyncBuilder()
Implementations need to create the builder, eg:
S3AsyncClient.builder(); . |
protected software.amazon.awssdk.services.s3.S3ClientBuilder |
createSyncBuilder()
Implementations need to create the builder, eg:
S3Client.builder(); . |
software.amazon.awssdk.services.s3.S3ClientBuilder |
syncBuilder(software.amazon.awssdk.http.SdkHttpClient httpClient)
Configures the builder so that it uses the appropriate HTTP client, credentials and region providers.
|
software.amazon.awssdk.services.s3.S3Client |
syncClient(software.amazon.awssdk.services.s3.S3ClientBuilder builder)
Creates the sync client.
|
public S3ClientFactory(software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProviderChain regionProvider, S3ConfigurationProperties configuration)
credentialsProvider
- The credentials providerregionProvider
- The region providerconfiguration
- The service configurationprotected software.amazon.awssdk.services.s3.S3ClientBuilder createSyncBuilder()
AwsClientFactory
S3Client.builder();
.createSyncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.s3.S3ClientBuilder,software.amazon.awssdk.services.s3.S3AsyncClientBuilder,software.amazon.awssdk.services.s3.S3Client,software.amazon.awssdk.services.s3.S3AsyncClient>
protected software.amazon.awssdk.services.s3.S3AsyncClientBuilder createAsyncBuilder()
AwsClientFactory
S3AsyncClient.builder();
.createAsyncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.s3.S3ClientBuilder,software.amazon.awssdk.services.s3.S3AsyncClientBuilder,software.amazon.awssdk.services.s3.S3Client,software.amazon.awssdk.services.s3.S3AsyncClient>
@Singleton public software.amazon.awssdk.services.s3.S3ClientBuilder syncBuilder(software.amazon.awssdk.http.SdkHttpClient httpClient)
AwsClientFactory
@Singleton
.syncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.s3.S3ClientBuilder,software.amazon.awssdk.services.s3.S3AsyncClientBuilder,software.amazon.awssdk.services.s3.S3Client,software.amazon.awssdk.services.s3.S3AsyncClient>
httpClient
- The sync HTTP client@Bean(preDestroy="close") @Singleton public software.amazon.awssdk.services.s3.S3Client syncClient(software.amazon.awssdk.services.s3.S3ClientBuilder builder)
AwsClientFactory
SB
.syncClient
in class AwsClientFactory<software.amazon.awssdk.services.s3.S3ClientBuilder,software.amazon.awssdk.services.s3.S3AsyncClientBuilder,software.amazon.awssdk.services.s3.S3Client,software.amazon.awssdk.services.s3.S3AsyncClient>
builder
- The sync builderAwsClientFactory.syncBuilder(SdkHttpClient)
@Singleton @Requires(beans=software.amazon.awssdk.http.async.SdkAsyncHttpClient.class) public software.amazon.awssdk.services.s3.S3AsyncClientBuilder asyncBuilder(software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient)
AwsClientFactory
@Singleton
.asyncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.s3.S3ClientBuilder,software.amazon.awssdk.services.s3.S3AsyncClientBuilder,software.amazon.awssdk.services.s3.S3Client,software.amazon.awssdk.services.s3.S3AsyncClient>
httpClient
- The async HTTP client@Bean(preDestroy="close") @Singleton @Requires(beans=software.amazon.awssdk.http.async.SdkAsyncHttpClient.class) public software.amazon.awssdk.services.s3.S3AsyncClient asyncClient(software.amazon.awssdk.services.s3.S3AsyncClientBuilder builder)
AwsClientFactory
AB
.asyncClient
in class AwsClientFactory<software.amazon.awssdk.services.s3.S3ClientBuilder,software.amazon.awssdk.services.s3.S3AsyncClientBuilder,software.amazon.awssdk.services.s3.S3Client,software.amazon.awssdk.services.s3.S3AsyncClient>
builder
- The async builder