Class WeldExecutorServices

  • All Implemented Interfaces:
    org.jboss.msc.Service, org.jboss.weld.bootstrap.api.Service, org.jboss.weld.manager.api.ExecutorServices

    public class WeldExecutorServices
    extends org.jboss.weld.executor.AbstractExecutorServices
    implements org.jboss.msc.Service
    Weld's ExecutorServices implementation. The executor is shared across all Jakarta Contexts and Dependency Injection enabled deployments and used primarily for parallel Weld bootstrap.
    Author:
    Jozef Hartinger, Richard Opalka
    • Field Detail

      • DEFAULT_BOUND

        public static final int DEFAULT_BOUND
      • SERVICE_NAME

        public static final org.jboss.msc.service.ServiceName SERVICE_NAME
    • Constructor Detail

      • WeldExecutorServices

        public WeldExecutorServices()
      • WeldExecutorServices

        public WeldExecutorServices​(Consumer<org.jboss.weld.manager.api.ExecutorServices> executorServicesConsumer,
                                    int bound)
    • Method Detail

      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service
      • getThreadPoolSize

        protected int getThreadPoolSize()
        Specified by:
        getThreadPoolSize in class org.jboss.weld.executor.AbstractExecutorServices
      • getTaskExecutor

        public ExecutorService getTaskExecutor()
        Specified by:
        getTaskExecutor in interface org.jboss.weld.manager.api.ExecutorServices
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in interface org.jboss.weld.bootstrap.api.Service
        Overrides:
        cleanup in class org.jboss.weld.executor.AbstractExecutorServices