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