Class NettyClientFactory

java.lang.Object
io.micronaut.aws.sdk.v2.client.netty.NettyClientFactory

@Factory public class NettyClientFactory extends Object
Factory that creates a Netty client.
Since:
2.0.0
Author:
Álvaro Sánchez-Mariscal
  • Field Details

  • 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