Package ratpack.exec

Interface ExecControllerSpec.EventLoopSpec

    • Method Detail

      • threads

        ExecControllerSpec.EventLoopSpec threads​(int threads)
        Specify the number of threads for this group.
        Parameters:
        threads - the number of threads
        Returns:
        this
      • prefix

        ExecControllerSpec.EventLoopSpec prefix​(String prefix)
        Specify the thread prefix to utilize when constructing new threads from this group.
        Parameters:
        prefix - the thread name prefix
        Returns:
        this
      • eventLoopGroup

        ExecControllerSpec.EventLoopSpec eventLoopGroup​(BiFunction<Integer,​ThreadFactory,​io.netty.channel.EventLoopGroup> eventLoopGroupFactory)
        Specify a factory that generates Netty EventLoopGroup instances with the arguments.

        The default value for this factory is TransportDetector.eventLoopGroup(int, ThreadFactory) which will automatically configure the most optimization implementation available on the current system in the following order:

        • Epoll
          KQueue
          NIO
Parameters:
eventLoopGroupFactory - a factory that creates event loop group instances
Returns:
this