Class ClientNoopHandler
java.lang.Object
com.couchbase.client.core.deps.io.netty.channel.ChannelHandlerAdapter
com.couchbase.client.core.deps.io.netty.channel.ChannelInboundHandlerAdapter
com.couchbase.client.core.deps.io.netty.channel.ChannelDuplexHandler
com.couchbase.client.core.deps.io.netty.handler.timeout.IdleStateHandler
com.couchbase.client.dcp.transport.netty.ClientNoopHandler
- All Implemented Interfaces:
com.couchbase.client.core.deps.io.netty.channel.ChannelHandler,com.couchbase.client.core.deps.io.netty.channel.ChannelInboundHandler,com.couchbase.client.core.deps.io.netty.channel.ChannelOutboundHandler
public class ClientNoopHandler
extends com.couchbase.client.core.deps.io.netty.handler.timeout.IdleStateHandler
Issues ordinary NOOP requests to the server when the DCP channel is idle.
Useful if the channel is not used for streaming, since the server only sends
DCP_NOOP requests to the client when there is at least one stream open.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.deps.io.netty.channel.ChannelHandler
com.couchbase.client.core.deps.io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchannelIdle(com.couchbase.client.core.deps.io.netty.channel.ChannelHandlerContext ctx, com.couchbase.client.core.deps.io.netty.handler.timeout.IdleStateEvent evt) Methods inherited from class com.couchbase.client.core.deps.io.netty.handler.timeout.IdleStateHandler
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, getAllIdleTimeInMillis, getReaderIdleTimeInMillis, getWriterIdleTimeInMillis, handlerAdded, handlerRemoved, newIdleStateEvent, writeMethods inherited from class com.couchbase.client.core.deps.io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class com.couchbase.client.core.deps.io.netty.channel.ChannelInboundHandlerAdapter
channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class com.couchbase.client.core.deps.io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
ClientNoopHandler
-
-
Method Details
-
channelIdle
protected void channelIdle(com.couchbase.client.core.deps.io.netty.channel.ChannelHandlerContext ctx, com.couchbase.client.core.deps.io.netty.handler.timeout.IdleStateEvent evt) throws Exception - Overrides:
channelIdlein classcom.couchbase.client.core.deps.io.netty.handler.timeout.IdleStateHandler- Throws:
Exception
-