Class InactiveChannelHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.apache.tinkerpop.gremlin.driver.handler.InactiveChannelHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable public class InactiveChannelHandler extends io.netty.channel.ChannelInboundHandlerAdapter
Handler used to detect if the channel has become inactive and throw an error in certain scenarios.
-
-
Field Summary
Fields Modifier and Type Field Description static io.netty.util.AttributeKey<Integer>
BYTES_READ
static io.netty.util.AttributeKey<Boolean>
REQUEST_SENT
-
Constructor Summary
Constructors Constructor Description InactiveChannelHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
channelInactive(io.netty.channel.ChannelHandlerContext ctx)
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-