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>>
public final class AwaitCloseChannelPoolMap extends SdkChannelPoolMap<URI,software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool>
Implementation ofSdkChannelPoolMap
that awaits channel pools to be closed upon closing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AwaitCloseChannelPoolMap.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwaitCloseChannelPoolMap.Builder
builder()
void
close()
protected software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool
newPool(URI key)
Called once a newChannelPool
needs to be created as non exists yet for thekey
.-
Methods inherited from class software.amazon.awssdk.http.nio.netty.internal.SdkChannelPoolMap
contains, get, isEmpty, iterator, pools, remove, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
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 newChannelPool
needs to be created as non exists yet for thekey
.- Specified by:
newPool
in classSdkChannelPoolMap<URI,software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classSdkChannelPoolMap<URI,software.amazon.awssdk.http.nio.netty.internal.SimpleChannelPoolAwareChannelPool>
-
-