Class UserExecutorConfiguration

  • All Implemented Interfaces:
    ExecutorConfiguration

    @EachProperty("micronaut.executors")
    public class UserExecutorConfiguration
    extends java.lang.Object
    implements ExecutorConfiguration
    Allows configuration ExecutorService instances that are made available as beans.
    Since:
    1.0
    • Field Detail

      • AVAILABLE_PROCESSORS

        public static final int AVAILABLE_PROCESSORS
        Number of available processors.
      • name

        protected java.lang.String name
      • nThreads

        protected java.lang.Integer nThreads
    • Constructor Detail

      • UserExecutorConfiguration

        @ConfigurationInject
        protected UserExecutorConfiguration​(@Nullable @Parameter
                                            java.lang.String name,
                                            @Nullable
                                            java.lang.Integer nThreads,
                                            @Nullable
                                            ExecutorType type,
                                            @Nullable
                                            java.lang.Integer parallelism,
                                            @Nullable
                                            java.lang.Integer corePoolSize,
                                            @Nullable
                                            java.lang.Class<? extends java.util.concurrent.ThreadFactory> threadFactoryClass)
        Default Constructor.
        Parameters:
        name - the name
        nThreads - number of threads
        type - the type
        parallelism - the parallelism
        corePoolSize - the core pool size
        threadFactoryClass - the thread factory class