Class EventLoopGroupFactory

java.lang.Object
org.apache.nifi.event.transport.netty.EventLoopGroupFactory
Direct Known Subclasses:
NettyEventSenderFactory, NettyEventServerFactory

class EventLoopGroupFactory extends Object
Event Loop Group Factory for standardized instance creation
  • Field Details

    • DEFAULT_THREAD_NAME_PREFIX

      private static final String DEFAULT_THREAD_NAME_PREFIX
      See Also:
    • DAEMON_THREAD_ENABLED

      private static final boolean DAEMON_THREAD_ENABLED
      See Also:
    • threadNamePrefix

      private String threadNamePrefix
    • workerThreads

      private int workerThreads
  • Constructor Details

    • EventLoopGroupFactory

      EventLoopGroupFactory()
  • Method Details

    • setThreadNamePrefix

      public void setThreadNamePrefix(String threadNamePrefix)
      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

      private ThreadFactory getThreadFactory()