/** * Set the executor for long running tasks * @param executor The executor */ public void setLongRunningThreadPool(BlockingExecutor executor) { if (log.isTraceEnabled()) log.trace("long running executor:" + (executor != null ? executor.getClass() : "null")); if (executor != null) { if (executor instanceof StatisticsExecutor) { this.longRunningExecutor = (StatisticsExecutor) executor; } else { this.longRunningExecutor = new StatisticsExecutorImpl(executor); } } }
/** * Set the executor for short running tasks * @param executor The executor */ public void setShortRunningThreadPool(BlockingExecutor executor) { if (log.isTraceEnabled()) log.trace("short running executor:" + (executor != null ? executor.getClass() : "null")); if (executor != null) { if (executor instanceof StatisticsExecutor) { this.shortRunningExecutor = (StatisticsExecutor) executor; } else { this.shortRunningExecutor = new StatisticsExecutorImpl(executor); } } }