public class RntbdClientChannelHandler
extends io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
implements io.netty.channel.pool.ChannelPoolHandler
| Modifier and Type | Method and Description |
|---|---|
void |
channelAcquired(io.netty.channel.Channel channel)
Called by
ChannelPool.acquire() after a Channel is acquired |
void |
channelCreated(io.netty.channel.Channel channel)
Called by
ChannelPool.release(io.netty.channel.Channel) after a Channel is created |
void |
channelReleased(io.netty.channel.Channel channel)
Called by
ChannelPool.release(io.netty.channel.Channel) after a Channel is released |
protected void |
initChannel(io.netty.channel.Channel channel)
Called by @{ChannelPipeline} initializer after the current channel is registered to an event loop.
|
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic void channelAcquired(io.netty.channel.Channel channel)
ChannelPool.acquire() after a Channel is acquired
This method is called within the EventLoop of the Channel.
channelAcquired in interface io.netty.channel.pool.ChannelPoolHandlerchannel - a channel that was just acquiredpublic void channelCreated(io.netty.channel.Channel channel)
ChannelPool.release(io.netty.channel.Channel) after a Channel is created
This method is called within the EventLoop of the Channel.
channelCreated in interface io.netty.channel.pool.ChannelPoolHandlerchannel - a channel that was just createdpublic void channelReleased(io.netty.channel.Channel channel)
ChannelPool.release(io.netty.channel.Channel) after a Channel is released
This method is called within the EventLoop of the Channel.
channelReleased in interface io.netty.channel.pool.ChannelPoolHandlerchannel - a channel that was just releasedprotected void initChannel(io.netty.channel.Channel channel)
This method constructs this pipeline:
ChannelPipeline {
(SslHandler#0 = io.netty.handler.ssl.SslHandler),
(IdleTimeoutHandler#0 = io.netty.handler.timeout.IdleTimeoutHandler),
(LoggingHandler#0 = io.netty.handler.logging.LoggingHandler), // iff RntbdClientChannelHandler.config.wireLogLevel != null
(RntbdContextNegotiator#0 = com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextNegotiator),
(RntbdResponseDecoder#0 = com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdResponseDecoder),
(RntbdRequestEncoder#0 = com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdRequestEncoder),
(RntbdRequestManager#0 = com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdRequestManager),
}
initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.Channel>channel - a channel that was just registered with an event loopCopyright © 2021. All rights reserved.