Class RntbdContextNegotiator
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelDuplexHandler
-
- io.netty.channel.CombinedChannelDuplexHandler<com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextDecoder,com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextRequestEncoder>
-
- com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextNegotiator
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler
public final class RntbdContextNegotiator extends io.netty.channel.CombinedChannelDuplexHandler<com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextDecoder,com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextRequestEncoder>
-
-
Constructor Summary
Constructors Constructor Description RntbdContextNegotiator(RntbdRequestManager manager, com.microsoft.azure.cosmosdb.internal.UserAgentContainer userAgent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(io.netty.channel.ChannelHandlerContext context, Object message, io.netty.channel.ChannelPromise promise)Called once a write operation is made.-
Methods inherited from class io.netty.channel.CombinedChannelDuplexHandler
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, inboundHandler, init, outboundHandler, read, removeInboundHandler, removeOutboundHandler, userEventTriggered
-
-
-
-
Constructor Detail
-
RntbdContextNegotiator
public RntbdContextNegotiator(RntbdRequestManager manager, com.microsoft.azure.cosmosdb.internal.UserAgentContainer userAgent)
-
-
Method Detail
-
write
public void write(io.netty.channel.ChannelHandlerContext context, Object message, io.netty.channel.ChannelPromise promise) throws ExceptionCalled once a write operation is made. The write operation will write the messages through theChannelPipeline. Those are then ready to be flushed to the actualChannelonceChannel.flush()is called- Specified by:
writein interfaceio.netty.channel.ChannelOutboundHandler- Overrides:
writein classio.netty.channel.CombinedChannelDuplexHandler<com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextDecoder,com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextRequestEncoder>- Parameters:
context- theChannelHandlerContextfor which the write operation is mademessage- the message to writepromise- theChannelPromiseto notify once the operation completes- Throws:
Exception- thrown if an error occurs
-
-