Class WeldExecutorServices

java.lang.Object
org.jboss.weld.executor.AbstractExecutorServices
org.jboss.as.weld.services.bootstrap.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
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.jboss.weld.manager.api.ExecutorServices

    org.jboss.weld.manager.api.ExecutorServices.TaskFactory<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final org.jboss.msc.service.ServiceName
     

    Fields inherited from interface org.jboss.msc.Service

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    WeldExecutorServices(Consumer<org.jboss.weld.manager.api.ExecutorServices> executorServicesConsumer, int bound)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    protected int
     
    void
    start(org.jboss.msc.service.StartContext context)
     
    void
    stop(org.jboss.msc.service.StopContext context)
     

    Methods inherited from class org.jboss.weld.executor.AbstractExecutorServices

    checkForExceptions, getTimerExecutor, invokeAllAndCheckForExceptions, invokeAllAndCheckForExceptions, shutdown, wrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_BOUND

      public static final int DEFAULT_BOUND
    • SERVICE_NAME

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

    • WeldExecutorServices

      public WeldExecutorServices()
    • WeldExecutorServices

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

    • 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