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 and Description |
|---|
RntbdContextNegotiator(RntbdRequestManager manager,
com.microsoft.azure.cosmosdb.internal.UserAgentContainer userAgent) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(io.netty.channel.ChannelHandlerContext context,
Object message,
io.netty.channel.ChannelPromise promise)
Called once a write operation is made.
|
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, inboundHandler, init, outboundHandler, read, removeInboundHandler, removeOutboundHandler, userEventTriggeredpublic RntbdContextNegotiator(RntbdRequestManager manager, com.microsoft.azure.cosmosdb.internal.UserAgentContainer userAgent)
public void write(io.netty.channel.ChannelHandlerContext context,
Object message,
io.netty.channel.ChannelPromise promise)
throws Exception
ChannelPipeline. Those are then ready to be flushed to the actual Channel once
Channel.flush() is calledwrite in interface io.netty.channel.ChannelOutboundHandlerwrite in class io.netty.channel.CombinedChannelDuplexHandler<com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextDecoder,com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextRequestEncoder>context - the ChannelHandlerContext for which the write operation is mademessage - the message to writepromise - the ChannelPromise to notify once the operation completesException - thrown if an error occursCopyright © 2020. All rights reserved.