public class ReleaseOnceChannelPool extends Object implements io.netty.channel.pool.ChannelPool
ChannelPool to protect it from having the same channel released twice. This can
 cause issues in FixedChannelPool and Http2MultiplexedChannelPool which has a simple
 mechanism to track leased connections.| Constructor and Description | 
|---|
ReleaseOnceChannelPool(io.netty.channel.pool.ChannelPool delegate)  | 
| Modifier and Type | Method and Description | 
|---|---|
io.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> | 
release(io.netty.channel.Channel channel,
       io.netty.util.concurrent.Promise<Void> promise)  | 
public ReleaseOnceChannelPool(io.netty.channel.pool.ChannelPool delegate)
public io.netty.util.concurrent.Future<io.netty.channel.Channel> acquire()
acquire in interface io.netty.channel.pool.ChannelPoolpublic io.netty.util.concurrent.Future<io.netty.channel.Channel> acquire(io.netty.util.concurrent.Promise<io.netty.channel.Channel> promise)
acquire in interface io.netty.channel.pool.ChannelPoolpublic io.netty.util.concurrent.Future<Void> release(io.netty.channel.Channel channel)
release in interface io.netty.channel.pool.ChannelPoolpublic io.netty.util.concurrent.Future<Void> release(io.netty.channel.Channel channel, io.netty.util.concurrent.Promise<Void> promise)
release in interface io.netty.channel.pool.ChannelPoolpublic void close()
close in interface io.netty.channel.pool.ChannelPoolclose in interface Closeableclose in interface AutoCloseableCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.