Class HandlerUtils
- java.lang.Object
-
- com.couchbase.client.core.io.netty.HandlerUtils
-
public class HandlerUtils extends Object
Various netty IO handler utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeChannelWithReason(IoContext ioContext, com.couchbase.client.core.deps.io.netty.channel.ChannelHandlerContext ctx, ChannelClosedProactivelyEvent.Reason reason)
Proactively close this channel with the given reason.
-
-
-
Method Detail
-
closeChannelWithReason
public static void closeChannelWithReason(IoContext ioContext, com.couchbase.client.core.deps.io.netty.channel.ChannelHandlerContext ctx, ChannelClosedProactivelyEvent.Reason reason)
Proactively close this channel with the given reason.- Parameters:
ioContext
- the io context.ctx
- the channel context.reason
- the reason why the channel is closed.
-
-