Class ExecutorServicesImpl

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

    public class ExecutorServicesImpl
    extends org.jboss.weld.executor.AbstractExecutorServices
    implements org.jboss.weld.manager.api.ExecutorServices
    Implementation of the Weld Executor Services SPI which uses the Payara Executor Service for its
    Author:
    steve
    • Method Detail

      • getTaskExecutor

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

        public ScheduledExecutorService getTimerExecutor()
        Specified by:
        getTimerExecutor in interface org.jboss.weld.manager.api.ExecutorServices
        Overrides:
        getTimerExecutor in class org.jboss.weld.executor.AbstractExecutorServices
      • cleanup

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

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

        public <T> Collection<? extends Callable<T>> wrap​(Collection<? extends Callable<T>> tasks)
        Overrides:
        wrap in class org.jboss.weld.executor.AbstractExecutorServices