public abstract static class ProtocolNegotiators.AbstractBufferingHandler extends ChannelDuplexHandler
writeBufferedAndRemove(ChannelHandlerContext) or
fail(ChannelHandlerContext, Throwable) is called. This handler allows us to
write to a Channel before we are allowed to write to it officially
i.e. before it's active or the TLS Handshake is complete.ChannelHandler.Sharable| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(ChannelHandlerContext ctx) |
void |
channelRegistered(ChannelHandlerContext ctx) |
void |
close(ChannelHandlerContext ctx,
ChannelPromise future) |
void |
exceptionCaught(ChannelHandlerContext ctx,
Throwable cause) |
protected void |
fail(ChannelHandlerContext ctx,
Throwable cause) |
void |
flush(ChannelHandlerContext ctx) |
void |
write(ChannelHandlerContext ctx,
Object msg,
ChannelPromise promise) |
protected void |
writeBufferedAndRemove(ChannelHandlerContext ctx) |
bind, connect, deregister, disconnect, readchannelActive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedpublic void channelRegistered(ChannelHandlerContext ctx) throws Exception
channelRegistered in interface ChannelInboundHandlerchannelRegistered in class ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught in interface ChannelHandlerexceptionCaught in interface ChannelInboundHandlerexceptionCaught in class ChannelInboundHandlerAdapterExceptionpublic void channelInactive(ChannelHandlerContext ctx) throws Exception
channelInactive in interface ChannelInboundHandlerchannelInactive in class ChannelInboundHandlerAdapterExceptionpublic void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception
write in interface ChannelOutboundHandlerwrite in class ChannelDuplexHandlerExceptionpublic void flush(ChannelHandlerContext ctx)
flush in interface ChannelOutboundHandlerflush in class ChannelDuplexHandlerpublic void close(ChannelHandlerContext ctx, ChannelPromise future) throws Exception
close in interface ChannelOutboundHandlerclose in class ChannelDuplexHandlerExceptionprotected final void fail(ChannelHandlerContext ctx, Throwable cause)
protected final void writeBufferedAndRemove(ChannelHandlerContext ctx)