public class AutoFlushChannelHandler extends AbstractChannelHandler<Object,Object>
| 构造器和说明 |
|---|
AutoFlushChannelHandler(long writerIdleTime,
TimeUnit unit) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx) |
static boolean |
flushIfNeed(io.netty.channel.ChannelHandlerContext context) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
static boolean |
isAutoFlush(io.netty.channel.ChannelPipeline pipeline) |
static io.netty.channel.ChannelFuture |
writeIfFlush(io.netty.channel.ChannelHandlerContext context,
Object message) |
channelRead, messageToString, userEventTriggered, writebind, close, connect, deregister, disconnect, flush, readpublic AutoFlushChannelHandler(long writerIdleTime,
TimeUnit unit)
public static boolean isAutoFlush(io.netty.channel.ChannelPipeline pipeline)
public static boolean flushIfNeed(io.netty.channel.ChannelHandlerContext context)
public static io.netty.channel.ChannelFuture writeIfFlush(io.netty.channel.ChannelHandlerContext context,
Object message)
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerAdded 在接口中 io.netty.channel.ChannelHandlerhandlerAdded 在类中 io.netty.channel.ChannelHandlerAdapterExceptionpublic void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
handlerRemoved 在接口中 io.netty.channel.ChannelHandlerhandlerRemoved 在类中 io.netty.channel.ChannelHandlerAdapterpublic void channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelRegistered 在接口中 io.netty.channel.ChannelInboundHandlerchannelRegistered 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive 在接口中 io.netty.channel.ChannelInboundHandlerchannelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2021. All rights reserved.