final class ReadTimeoutHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
ReadTimeoutException if the time between a scheduleTimeout(io.netty.channel.ChannelHandlerContext) and removeTimeout(io.netty.channel.ChannelHandlerContext) is longer than the set
timeout.| Modifier and Type | Class and Description |
|---|---|
private static class |
ReadTimeoutHandler.ReadTimeoutTask |
| Modifier and Type | Field and Description |
|---|---|
private long |
readTimeout |
private java.util.concurrent.ScheduledFuture<?> |
timeout |
| Constructor and Description |
|---|
ReadTimeoutHandler(long readTimeout) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
removeTimeout(io.netty.channel.ChannelHandlerContext ctx) |
(package private) void |
scheduleTimeout(io.netty.channel.ChannelHandlerContext ctx) |
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharable