Class ThreadPoolSupplier

    • Method Detail

      • builder

        public static ThreadPoolSupplier.Builder builder()
        Create a new fluent API builder to build thread pool supplier.
        Returns:
        a builder instance
      • create

        @Deprecated(since="2.4.2",
                    forRemoval=true)
        public static ThreadPoolSupplier create​(Config config)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 2.4.2, please use create(Config, String)
        Load supplier from configuration.
        Parameters:
        config - config instance
        Returns:
        a new thread pool supplier configured from config
      • create

        public static ThreadPoolSupplier create​(Config config,
                                                String name)
        Load supplier from configuration.
        Parameters:
        config - config instance
        name - thread pool name
        Returns:
        a new thread pool supplier configured from config
      • create

        @Deprecated(since="2.4.2",
                    forRemoval=true)
        public static ThreadPoolSupplier create()
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 2.4.2, please use create(String)
        Create a new thread pool supplier with default configuration.
        Returns:
        a new thread pool supplier with default configuration
      • create

        public static ThreadPoolSupplier create​(String name)
        Create a new thread pool supplier with default configuration and a given name.
        Parameters:
        name - thread pool name
        Returns:
        a new thread pool supplier with default configuration
      • corePoolSize

        public int corePoolSize()
        Returns size of core pool.
        Returns:
        size of core pool.