Interface EventLoopGroupProvider

    • Method Detail

      • threadPoolSize

        int threadPoolSize()
        Returns the pool size (number of threads) for IO threads. The indicated size does not reflect the number for all IO threads, it is the number of threads that are used to create a particular thread pool.
        Returns:
        the pool size (number of threads) for all IO tasks.
      • release

        Future<Boolean> release​(EventExecutorGroup eventLoopGroup,
                                long quietPeriod,
                                long timeout,
                                TimeUnit unit)
        Release a eventLoopGroup instance. The method will shutdown/terminate the EventExecutorGroup if it is no longer needed.
        Parameters:
        eventLoopGroup - the eventLoopGroup instance, must not be null
        quietPeriod - the quiet period
        timeout - the timeout
        unit - time unit for the quiet period/the timeout
        Returns:
        a close future to synchronize the called for shutting down.
      • shutdown

        Future<Boolean> shutdown​(long quietPeriod,
                                 long timeout,
                                 TimeUnit timeUnit)
        Shutdown the provider and release all instances.
        Parameters:
        quietPeriod - the quiet period
        timeout - the timeout
        timeUnit - the unit of quietPeriod and timeout
        Returns:
        a close future to synchronize the called for shutting down.