Class RntbdClientChannelHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
-
- com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdClientChannelHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.pool.ChannelPoolHandler
public class RntbdClientChannelHandler extends io.netty.channel.ChannelInitializer<io.netty.channel.Channel> implements io.netty.channel.pool.ChannelPoolHandler
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelAcquired(io.netty.channel.Channel channel)Called byChannelPool.acquire()after aChannelis acquiredvoidchannelCreated(io.netty.channel.Channel channel)Called byChannelPool.release(io.netty.channel.Channel)after aChannelis createdvoidchannelReleased(io.netty.channel.Channel channel)Called byChannelPool.release(io.netty.channel.Channel)after aChannelis releasedprotected voidinitChannel(io.netty.channel.Channel channel)Called by @{ChannelPipeline} initializer after the current channel is registered to an event loop.-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Method Detail
-
channelAcquired
public void channelAcquired(io.netty.channel.Channel channel)
Called byChannelPool.acquire()after aChannelis acquiredThis method is called within the
EventLoopof theChannel.- Specified by:
channelAcquiredin interfaceio.netty.channel.pool.ChannelPoolHandler- Parameters:
channel- a channel that was just acquired
-
channelCreated
public void channelCreated(io.netty.channel.Channel channel)
Called byChannelPool.release(io.netty.channel.Channel)after aChannelis createdThis method is called within the
EventLoopof theChannel.- Specified by:
channelCreatedin interfaceio.netty.channel.pool.ChannelPoolHandler- Parameters:
channel- a channel that was just created
-
channelReleased
public void channelReleased(io.netty.channel.Channel channel)
Called byChannelPool.release(io.netty.channel.Channel)after aChannelis releasedThis method is called within the
EventLoopof theChannel.- Specified by:
channelReleasedin interfaceio.netty.channel.pool.ChannelPoolHandler- Parameters:
channel- a channel that was just released
-
initChannel
protected void initChannel(io.netty.channel.Channel channel)
Called by @{ChannelPipeline} initializer after the current channel is registered to an event loop.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), }- Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.channel.Channel>- Parameters:
channel- a channel that was just registered with an event loop
-
-