Class Http1TunnelConnectionPool
java.lang.Object
software.amazon.awssdk.http.nio.netty.internal.Http1TunnelConnectionPool
- All Implemented Interfaces:
io.netty.channel.pool.ChannelPool
,Closeable
,AutoCloseable
Connection pool that knows how to establish a tunnel using the HTTP CONNECT method.
-
Constructor Summary
ConstructorDescriptionHttp1TunnelConnectionPool
(io.netty.channel.EventLoop eventLoop, io.netty.channel.pool.ChannelPool delegate, io.netty.handler.ssl.SslContext sslContext, URI proxyAddress, String proxyUsername, String proxyPassword, URI remoteAddress, io.netty.channel.pool.ChannelPoolHandler handler, NettyConfiguration nettyConfiguration) Http1TunnelConnectionPool
(io.netty.channel.EventLoop eventLoop, io.netty.channel.pool.ChannelPool delegate, io.netty.handler.ssl.SslContext sslContext, URI proxyAddress, URI remoteAddress, io.netty.channel.pool.ChannelPoolHandler handler, NettyConfiguration nettyConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionio.netty.util.concurrent.Future
<io.netty.channel.Channel> acquire()
io.netty.util.concurrent.Future
<io.netty.channel.Channel> acquire
(io.netty.util.concurrent.Promise<io.netty.channel.Channel> promise) void
close()
io.netty.util.concurrent.Future
<Void> release
(io.netty.channel.Channel channel) io.netty.util.concurrent.Future
<Void>
-
Constructor Details
-
Http1TunnelConnectionPool
public Http1TunnelConnectionPool(io.netty.channel.EventLoop eventLoop, io.netty.channel.pool.ChannelPool delegate, io.netty.handler.ssl.SslContext sslContext, URI proxyAddress, String proxyUsername, String proxyPassword, URI remoteAddress, io.netty.channel.pool.ChannelPoolHandler handler, NettyConfiguration nettyConfiguration) -
Http1TunnelConnectionPool
public Http1TunnelConnectionPool(io.netty.channel.EventLoop eventLoop, io.netty.channel.pool.ChannelPool delegate, io.netty.handler.ssl.SslContext sslContext, URI proxyAddress, URI remoteAddress, io.netty.channel.pool.ChannelPoolHandler handler, NettyConfiguration nettyConfiguration)
-
-
Method Details
-
acquire
public io.netty.util.concurrent.Future<io.netty.channel.Channel> acquire()- Specified by:
acquire
in interfaceio.netty.channel.pool.ChannelPool
-
acquire
public io.netty.util.concurrent.Future<io.netty.channel.Channel> acquire(io.netty.util.concurrent.Promise<io.netty.channel.Channel> promise) - Specified by:
acquire
in interfaceio.netty.channel.pool.ChannelPool
-
release
- Specified by:
release
in interfaceio.netty.channel.pool.ChannelPool
-
release
public io.netty.util.concurrent.Future<Void> release(io.netty.channel.Channel channel, io.netty.util.concurrent.Promise<Void> promise) - Specified by:
release
in interfaceio.netty.channel.pool.ChannelPool
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceio.netty.channel.pool.ChannelPool
- Specified by:
close
in interfaceCloseable
-