public class PipelineUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addLastWithExecutorCheck(String handlerName,
io.netty.channel.ChannelHandler handler,
String compareTo,
io.netty.util.concurrent.EventExecutorGroup executor,
io.netty.channel.Channel channel)
Add a handler to pipeline if it is not already added
and configure the handler to use an executor group based on equality
of compareTo and handlerName
|
public static void addLastWithExecutorCheck(String handlerName, io.netty.channel.ChannelHandler handler, String compareTo, io.netty.util.concurrent.EventExecutorGroup executor, io.netty.channel.Channel channel)
handlerName
- string name of the handlerhandler
- channelhandler objectcompareTo
- string name to compare to for executorgroup usage checkexecutor
- executorgroup instancechannel
- netty channelCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.