class EventLoopGroupFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
DAEMON_THREAD_ENABLED |
private static String |
DEFAULT_THREAD_NAME_PREFIX |
private String |
threadNamePrefix |
private int |
workerThreads |
| Constructor and Description |
|---|
EventLoopGroupFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.channel.EventLoopGroup |
getEventLoopGroup() |
private ThreadFactory |
getThreadFactory() |
void |
setThreadNamePrefix(String threadNamePrefix)
Set Thread Name Prefix used in Netty NioEventLoopGroup defaults to NettyChannel
|
void |
setWorkerThreads(int workerThreads)
Set Worker Threads used in Netty NioEventLoopGroup with 0 interpreted as the default based on available processors
|
private static final String DEFAULT_THREAD_NAME_PREFIX
private static final boolean DAEMON_THREAD_ENABLED
private String threadNamePrefix
private int workerThreads
public void setThreadNamePrefix(String threadNamePrefix)
threadNamePrefix - Thread Name Prefixpublic void setWorkerThreads(int workerThreads)
workerThreads - NioEventLoopGroup Worker Threadsprotected io.netty.channel.EventLoopGroup getEventLoopGroup()
private ThreadFactory getThreadFactory()
Copyright © 2024 Apache NiFi Project. All rights reserved.