Class AbstractExecutorServices

    • Constructor Detail

      • AbstractExecutorServices

        public AbstractExecutorServices()
    • Method Detail

      • invokeAllAndCheckForExceptions

        public <T> List<Future<T>> invokeAllAndCheckForExceptions​(Collection<? extends Callable<T>> tasks)
        Specified by:
        invokeAllAndCheckForExceptions in interface org.jboss.weld.manager.api.ExecutorServices
      • invokeAllAndCheckForExceptions

        public <T> List<Future<T>> invokeAllAndCheckForExceptions​(org.jboss.weld.manager.api.ExecutorServices.TaskFactory<T> factory)
        Specified by:
        invokeAllAndCheckForExceptions in interface org.jboss.weld.manager.api.ExecutorServices
      • checkForExceptions

        protected <T> List<Future<T>> checkForExceptions​(List<Future<T>> futures)
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in interface org.jboss.weld.bootstrap.api.Service
      • shutdown

        protected void shutdown()
      • getThreadPoolSize

        protected abstract int getThreadPoolSize()
        Indicates the maximum number of threads in this thread pool. If the value is unknown or if the max number of threads is not bounded this method should return -1