Class EventLoopGroupFactory
java.lang.Object
org.apache.nifi.event.transport.netty.EventLoopGroupFactory
- Direct Known Subclasses:
NettyEventSenderFactory,NettyEventServerFactory
Event Loop Group Factory for standardized instance creation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.netty.channel.EventLoopGroupprivate ThreadFactoryvoidsetThreadNamePrefix(String threadNamePrefix) Set Thread Name Prefix used in Netty NioEventLoopGroup defaults to NettyChannelvoidsetWorkerThreads(int workerThreads) Set Worker Threads used in Netty NioEventLoopGroup with 0 interpreted as the default based on available processors
-
Field Details
-
DEFAULT_THREAD_NAME_PREFIX
- See Also:
-
DAEMON_THREAD_ENABLED
private static final boolean DAEMON_THREAD_ENABLED- See Also:
-
threadNamePrefix
-
workerThreads
private int workerThreads
-
-
Constructor Details
-
EventLoopGroupFactory
EventLoopGroupFactory()
-
-
Method Details
-
setThreadNamePrefix
Set Thread Name Prefix used in Netty NioEventLoopGroup defaults to NettyChannel- Parameters:
threadNamePrefix- Thread Name Prefix
-
setWorkerThreads
public void setWorkerThreads(int workerThreads) Set Worker Threads used in Netty NioEventLoopGroup with 0 interpreted as the default based on available processors- Parameters:
workerThreads- NioEventLoopGroup Worker Threads
-
getEventLoopGroup
protected io.netty.channel.EventLoopGroup getEventLoopGroup() -
getThreadFactory
-