Class NettyClientFactory
java.lang.Object
io.micronaut.aws.sdk.v2.client.netty.NettyClientFactory
Factory that creates a Netty client.
- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.http.async.SdkAsyncHttpClient
nettyClient
(NettyClientConfiguration configuration) software.amazon.awssdk.http.async.SdkAsyncHttpClient
systemPropertyClient
(NettyClientConfiguration configuration)
-
Field Details
-
ASYNC_SERVICE_IMPL
- See Also:
-
NETTY_SDK_ASYNC_HTTP_SERVICE
- See Also:
-
-
Constructor Details
-
NettyClientFactory
public NettyClientFactory()
-
-
Method Details
-
nettyClient
@Bean(preDestroy="close") @Singleton public software.amazon.awssdk.http.async.SdkAsyncHttpClient nettyClient(NettyClientConfiguration configuration) - Parameters:
configuration
- The Netty client configuration- Returns:
- an instance of
SdkAsyncHttpClient
-
systemPropertyClient
@Bean(preDestroy="close") @Singleton @Requires(property="software.amazon.awssdk.http.async.service.impl", value="software.amazon.awssdk.http.nio.netty.NettySdkAsyncHttpService") public software.amazon.awssdk.http.async.SdkAsyncHttpClient systemPropertyClient(NettyClientConfiguration configuration) - Parameters:
configuration
- The Netty client configuration- Returns:
- an instance of
SdkAsyncHttpClient
-