software.amazon.awssdk.services.ses.SesAsyncClient Java Examples
The following examples show how to use
software.amazon.awssdk.services.ses.SesAsyncClient.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SesClientFactory.java From micronaut-aws with Apache License 2.0 | 5 votes |
@Override @Bean(preDestroy = "close") @Singleton @Requires(beans = SdkAsyncHttpClient.class) public SesAsyncClient asyncClient(SesAsyncClientBuilder builder) { return super.asyncClient(builder); }
Example #2
Source File: SesRecorder.java From quarkus with Apache License 2.0 | 5 votes |
public RuntimeValue<AwsClientBuilder> createAsyncBuilder(SesConfig config, RuntimeValue<SdkAsyncHttpClient.Builder> transport) { SesAsyncClientBuilder builder = SesAsyncClient.builder(); if (transport != null) { builder.httpClientBuilder(transport.getValue()); } return new RuntimeValue<>(builder); }
Example #3
Source File: SesRecorder.java From quarkus with Apache License 2.0 | 5 votes |
public RuntimeValue<SesAsyncClient> buildAsyncClient(RuntimeValue<? extends AwsClientBuilder> builder, BeanContainer beanContainer, ShutdownContext shutdown) { SesClientProducer producer = beanContainer.instance(SesClientProducer.class); producer.setAsyncConfiguredBuilder((SesAsyncClientBuilder) builder.getValue()); shutdown.addShutdownTask(producer::destroy); return new RuntimeValue<>(producer.asyncClient()); }
Example #4
Source File: SesClientFactory.java From micronaut-aws with Apache License 2.0 | 4 votes |
@Override protected SesAsyncClientBuilder createAsyncBuilder() { return SesAsyncClient.builder(); }
Example #5
Source File: SesProcessor.java From quarkus with Apache License 2.0 | 4 votes |
@Override protected DotName asyncClientName() { return DotName.createSimple(SesAsyncClient.class.getName()); }
Example #6
Source File: SesClientProducer.java From quarkus with Apache License 2.0 | 4 votes |
@Produces @ApplicationScoped public SesAsyncClient asyncClient() { asyncClient = asyncConfiguredBuilder.build(); return asyncClient; }