@Factory public class SnsClientFactory extends AwsClientFactory<software.amazon.awssdk.services.sns.SnsClientBuilder,software.amazon.awssdk.services.sns.SnsAsyncClientBuilder,software.amazon.awssdk.services.sns.SnsClient,software.amazon.awssdk.services.sns.SnsAsyncClient>
credentialsProvider, regionProvider
Modifier | Constructor and Description |
---|---|
protected |
SnsClientFactory(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.sns.SnsAsyncClientBuilder |
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.sns.SnsAsyncClient |
asyncClient(software.amazon.awssdk.services.sns.SnsAsyncClientBuilder builder)
Creates the async client.
|
protected software.amazon.awssdk.services.sns.SnsAsyncClientBuilder |
createAsyncBuilder()
Implementations need to create the builder, eg:
S3AsyncClient.builder(); . |
protected software.amazon.awssdk.services.sns.SnsClientBuilder |
createSyncBuilder()
Implementations need to create the builder, eg:
S3Client.builder(); . |
software.amazon.awssdk.services.sns.SnsClientBuilder |
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.sns.SnsClient |
syncClient(software.amazon.awssdk.services.sns.SnsClientBuilder builder)
Creates the sync client.
|
protected SnsClientFactory(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.sns.SnsClientBuilder createSyncBuilder()
AwsClientFactory
S3Client.builder();
.createSyncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.sns.SnsClientBuilder,software.amazon.awssdk.services.sns.SnsAsyncClientBuilder,software.amazon.awssdk.services.sns.SnsClient,software.amazon.awssdk.services.sns.SnsAsyncClient>
protected software.amazon.awssdk.services.sns.SnsAsyncClientBuilder createAsyncBuilder()
AwsClientFactory
S3AsyncClient.builder();
.createAsyncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.sns.SnsClientBuilder,software.amazon.awssdk.services.sns.SnsAsyncClientBuilder,software.amazon.awssdk.services.sns.SnsClient,software.amazon.awssdk.services.sns.SnsAsyncClient>
@Singleton public software.amazon.awssdk.services.sns.SnsClientBuilder syncBuilder(software.amazon.awssdk.http.SdkHttpClient httpClient)
AwsClientFactory
@Singleton
.syncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.sns.SnsClientBuilder,software.amazon.awssdk.services.sns.SnsAsyncClientBuilder,software.amazon.awssdk.services.sns.SnsClient,software.amazon.awssdk.services.sns.SnsAsyncClient>
httpClient
- The sync HTTP client@Bean(preDestroy="close") @Singleton public software.amazon.awssdk.services.sns.SnsClient syncClient(software.amazon.awssdk.services.sns.SnsClientBuilder builder)
AwsClientFactory
SB
.syncClient
in class AwsClientFactory<software.amazon.awssdk.services.sns.SnsClientBuilder,software.amazon.awssdk.services.sns.SnsAsyncClientBuilder,software.amazon.awssdk.services.sns.SnsClient,software.amazon.awssdk.services.sns.SnsAsyncClient>
builder
- The sync builderAwsClientFactory.syncBuilder(SdkHttpClient)
@Singleton @Requires(beans=software.amazon.awssdk.http.async.SdkAsyncHttpClient.class) public software.amazon.awssdk.services.sns.SnsAsyncClientBuilder asyncBuilder(software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient)
AwsClientFactory
@Singleton
.asyncBuilder
in class AwsClientFactory<software.amazon.awssdk.services.sns.SnsClientBuilder,software.amazon.awssdk.services.sns.SnsAsyncClientBuilder,software.amazon.awssdk.services.sns.SnsClient,software.amazon.awssdk.services.sns.SnsAsyncClient>
httpClient
- The async HTTP client@Bean(preDestroy="close") @Singleton @Requires(beans=software.amazon.awssdk.http.async.SdkAsyncHttpClient.class) public software.amazon.awssdk.services.sns.SnsAsyncClient asyncClient(software.amazon.awssdk.services.sns.SnsAsyncClientBuilder builder)
AwsClientFactory
AB
.asyncClient
in class AwsClientFactory<software.amazon.awssdk.services.sns.SnsClientBuilder,software.amazon.awssdk.services.sns.SnsAsyncClientBuilder,software.amazon.awssdk.services.sns.SnsClient,software.amazon.awssdk.services.sns.SnsAsyncClient>
builder
- The async builder