public class ReadSuppressingHandler
extends io.netty.channel.ChannelOutboundHandlerAdapter
ChannelOutboundHandler that suppresses unnecessary ChannelHandlerContext.read() calls
when auto-read is disabled.| Modifier and Type | Field and Description |
|---|---|
static ReadSuppressingHandler |
INSTANCE
The singleton
ReadSuppressingHandler instance. |
| Modifier | Constructor and Description |
|---|---|
protected |
ReadSuppressingHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSharable() |
void |
read(io.netty.channel.ChannelHandlerContext ctx) |
bind, close, connect, deregister, disconnect, flush, writeensureNotSharable, exceptionCaught, handlerAdded, handlerRemovedpublic static final ReadSuppressingHandler INSTANCE
ReadSuppressingHandler instance.public void read(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
read in interface io.netty.channel.ChannelOutboundHandlerread in class io.netty.channel.ChannelOutboundHandlerAdapterExceptionpublic final boolean isSharable()
isSharable in class io.netty.channel.ChannelHandlerAdapterCopyright © 2020 LeanCloud. All rights reserved.