public abstract class IdleTimeoutHandler
extends io.netty.handler.timeout.IdleStateHandler
| Modifier | Constructor and Description |
|---|---|
protected |
IdleTimeoutHandler(String name,
long idleTimeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelIdle(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.timeout.IdleStateEvent evt) |
protected abstract boolean |
hasRequestsInProgress(io.netty.channel.ChannelHandlerContext ctx) |
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, getAllIdleTimeInMillis, getReaderIdleTimeInMillis, getWriterIdleTimeInMillis, handlerAdded, handlerRemoved, newIdleStateEvent, writebind, close, connect, deregister, disconnect, flush, readchannelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredprotected IdleTimeoutHandler(String name, long idleTimeoutMillis)
protected final void channelIdle(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.timeout.IdleStateEvent evt)
throws Exception
channelIdle in class io.netty.handler.timeout.IdleStateHandlerExceptionprotected abstract boolean hasRequestsInProgress(io.netty.channel.ChannelHandlerContext ctx)
Copyright © 2020 LeanCloud. All rights reserved.