public class HonorCloseOnReleaseChannelPool extends Object implements io.netty.channel.pool.ChannelPool
ChannelAttributeKey.CLOSE_ON_RELEASE is honored when a channel is released to the
underlying pool.
When a channel is released and ChannelAttributeKey.CLOSE_ON_RELEASE is true on the channel, the channel will be closed
before it is released to the underlying pool.| Constructor and Description |
|---|
HonorCloseOnReleaseChannelPool(io.netty.channel.pool.ChannelPool delegatePool) |
| 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 HonorCloseOnReleaseChannelPool(io.netty.channel.pool.ChannelPool delegatePool)
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 © 2019. All rights reserved.