/** * An executor which delegates to another executor, wrapping each task in a task wrapper. * * @param taskWrapper the task wrapper * @param delegate the delegate executor * @return a wrapping executor */ public static Executor wrappingExecutor(final DirectExecutor taskWrapper, final Executor delegate) { return executor(wrappingExecutor(delegate), taskWrapper); }
/** * An executor which delegates to another executor, wrapping each task in a task wrapper. * * @param taskWrapper the task wrapper * @param delegate the delegate executor * @return a wrapping executor */ public static Executor wrappingExecutor(final DirectExecutor taskWrapper, final Executor delegate) { return executor(wrappingExecutor(delegate), taskWrapper); }
/** * An executor which delegates to another executor, wrapping each task in a task wrapper. * * @param taskWrapper the task wrapper * @param delegate the delegate executor * @return a wrapping executor */ public static Executor wrappingExecutor(final DirectExecutor taskWrapper, final Executor delegate) { return executor(wrappingExecutor(delegate), taskWrapper); }
public static Executor createJBossThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, List<Object> taskFilterObjects) { return JBossExecutors.wrappingExecutor(createTaskFilter(taskFilterObjects), new JBossThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory)); }