public final class IdleTimeoutHandler extends IdleStateHandler
ChannelHandler.Sharable| Modifier and Type | Method and Description |
|---|---|
static void |
addIdleTimeoutHandler(ChannelPipeline pipeline,
Duration idleTimeout,
HttpConnectionLiveness httpConnectionLiveness)
Adds an idle timeout handler to the pipeline.
|
protected void |
channelIdle(ChannelHandlerContext ctx,
IdleStateEvent evt) |
void |
channelInactive(ChannelHandlerContext ctx) |
void |
channelRead(ChannelHandlerContext ctx,
Object msg) |
void |
handlerRemoved(ChannelHandlerContext ctx) |
static void |
removeIdleTimeoutHandler(ChannelPipeline pipeline)
Removes the idle timeout handler from the pipeline if it exists.
|
channelActive, channelReadComplete, channelRegistered, getAllIdleTimeInMillis, getReaderIdleTimeInMillis, getWriterIdleTimeInMillis, handlerAdded, newIdleStateEvent, resetReadTimeout, resetWriteTimeout, writebind, close, connect, deregister, disconnect, flush, readchannelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaughtprotected void channelIdle(ChannelHandlerContext ctx, IdleStateEvent evt)
channelIdle in class IdleStateHandlerpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
channelRead in interface ChannelInboundHandlerchannelRead in class IdleStateHandlerExceptionpublic void channelInactive(ChannelHandlerContext ctx) throws Exception
channelInactive in interface ChannelInboundHandlerchannelInactive in class IdleStateHandlerExceptionpublic void handlerRemoved(ChannelHandlerContext ctx) throws Exception
handlerRemoved in interface ChannelHandlerhandlerRemoved in class IdleStateHandlerExceptionpublic static void addIdleTimeoutHandler(ChannelPipeline pipeline, @Nullable Duration idleTimeout, HttpConnectionLiveness httpConnectionLiveness)
pipeline - the channel pipelineidleTimeout - the idle timeout durationhttpConnectionLiveness - the HTTP connection liveness checkerpublic static void removeIdleTimeoutHandler(ChannelPipeline pipeline)
pipeline - the channel pipeline from which the handler will be removed