/** * 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); }