Class ExecutorConfiguration


  • public class ExecutorConfiguration
    extends Object
    Custom thread pool configuration for compute tasks. See IgniteCompute.withAsync() for more information.
    • Constructor Detail

      • ExecutorConfiguration

        public ExecutorConfiguration()
        Default constructor.
      • ExecutorConfiguration

        public ExecutorConfiguration​(String name)
        Constructor.
        Parameters:
        name - Thread pool name.
      • ExecutorConfiguration

        public ExecutorConfiguration​(ExecutorConfiguration other)
        Copying constructor.
        Parameters:
        other - Instance to copy.
    • Method Detail

      • getName

        public String getName()
        Get thread pool name.

        See setName(String) for more information.

        Returns:
        Executor name.
      • setName

        public ExecutorConfiguration setName​(String name)
        Set thread pool name. Name cannot be null and should be unique with respect to other custom executors.
        Parameters:
        name - Executor name.
        Returns:
        this for chaining.
      • getSize

        public int getSize()
        Get thread pool size.

        See setSize(int) for more information.

        Returns:
        Thread pool size.