Class AwaitCloseChannelPoolMap

java.lang.Object
software.amazon.awssdk.http.nio.netty.internal.SdkChannelPoolMap<URI,software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool>
software.amazon.awssdk.http.nio.netty.internal.AwaitCloseChannelPoolMap
All Implemented Interfaces:
io.netty.channel.pool.ChannelPoolMap<URI,software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool>, Closeable, AutoCloseable, Iterable<Map.Entry<URI,software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool>>

@SdkInternalApi public final class AwaitCloseChannelPoolMap extends SdkChannelPoolMap<URI,software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool>
Implementation of SdkChannelPoolMap that awaits channel pools to be closed upon closing.
  • Method Details

    • builder

      public static AwaitCloseChannelPoolMap.Builder builder()
    • newPool

      protected software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool newPool(URI key)
      Description copied from class: SdkChannelPoolMap
      Called once a new ChannelPool needs to be created as non exists yet for the key.
      Specified by:
      newPool in class SdkChannelPoolMap<URI,software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class SdkChannelPoolMap<URI,software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool>