@Factory public class DynamoDbClientFactory extends AwsClientFactory<software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbClient,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient>
credentialsProvider, regionProvider
Modifier | Constructor and Description |
---|---|
protected |
DynamoDbClientFactory(software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain credentialsProvider,
software.amazon.awssdk.regions.providers.AwsRegionProviderChain regionProvider)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder |
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.dynamodb.DynamoDbAsyncClient |
asyncClient(software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder builder)
Creates the async client.
|
protected software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder |
createAsyncBuilder()
Implementations need to create the builder, eg:
S3AsyncClient.builder(); . |
protected software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder |
createSyncBuilder()
Implementations need to create the builder, eg:
S3Client.builder(); . |
software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder |
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.dynamodb.DynamoDbClient |
syncClient(software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder builder)
Creates the sync client.
|
protected DynamoDbClientFactory(software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProviderChain regionProvider)
credentialsProvider
- The credentials providerregionProvider
- The region providerprotected software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder createSyncBuilder()
AwsClientFactory
S3Client.builder();
.createSyncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbClient,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient>
protected software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder createAsyncBuilder()
AwsClientFactory
S3AsyncClient.builder();
.createAsyncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbClient,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient>
@Singleton public software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder syncBuilder(software.amazon.awssdk.http.SdkHttpClient httpClient)
AwsClientFactory
@Singleton
.syncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbClient,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient>
httpClient
- The sync HTTP client@Bean(preDestroy="close") @Singleton public software.amazon.awssdk.services.dynamodb.DynamoDbClient syncClient(software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder builder)
AwsClientFactory
SB
.syncClient
in class AwsClientFactory<software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbClient,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient>
builder
- The sync builderAwsClientFactory.syncBuilder(SdkHttpClient)
@Singleton public software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder asyncBuilder(software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient)
AwsClientFactory
@Singleton
.asyncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbClient,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient>
httpClient
- The async HTTP client@Bean(preDestroy="close") @Singleton public software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient asyncClient(software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder builder)
AwsClientFactory
AB
.asyncClient
in class AwsClientFactory<software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClientBuilder,software.amazon.awssdk.services.dynamodb.DynamoDbClient,software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient>
builder
- The async builder