org.jboss.threads.BlockingExecutor Java Examples
The following examples show how to use
org.jboss.threads.BlockingExecutor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WorkManagerImpl.java From lams with GNU General Public License v2.0 | 6 votes |
/** * 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); } } }
Example #2
Source File: WorkManagerImpl.java From lams with GNU General Public License v2.0 | 6 votes |
/** * 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); } } }
Example #3
Source File: WorkManagerImpl.java From ironjacamar with Eclipse Public License 1.0 | 6 votes |
/** * Set the executor for short running tasks * @param executor The executor */ public void setShortRunningThreadPool(BlockingExecutor executor) { if (trace) 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); } } }
Example #4
Source File: WorkManagerImpl.java From ironjacamar with Eclipse Public License 1.0 | 6 votes |
/** * Set the executor for long running tasks * @param executor The executor */ public void setLongRunningThreadPool(BlockingExecutor executor) { if (trace) 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); } } }
Example #5
Source File: WorkManagerImpl.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Get the executor * @param work The work instance * @return The executor */ private BlockingExecutor getExecutor(Work work) { BlockingExecutor executor = shortRunningExecutor; if (longRunningExecutor != null && WorkManagerUtil.isLongRunning(work)) { executor = longRunningExecutor; } fireHintsComplete(work); return executor; }
Example #6
Source File: WorkManagerImpl.java From ironjacamar with Eclipse Public License 1.0 | 5 votes |
/** * Get the executor * @param work The work instance * @return The executor */ private BlockingExecutor getExecutor(Work work) { BlockingExecutor executor = shortRunningExecutor; if (longRunningExecutor != null && WorkManagerUtil.isLongRunning(work)) { executor = longRunningExecutor; } fireHintsComplete(work); return executor; }
Example #7
Source File: StatisticsExecutorImpl.java From lams with GNU General Public License v2.0 | 4 votes |
/** * StatisticsExecutorImpl constructor * @param realExecutor the real executor we are delegating */ public StatisticsExecutorImpl(BlockingExecutor realExecutor) { this.realExecutor = realExecutor; }
Example #8
Source File: ManagedQueuelessExecutorService.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected ExecutorService protectExecutor(ExecutorService executor) { return JBossExecutors.protectedBlockingExecutorService((BlockingExecutor) executor); }
Example #9
Source File: ManagedJBossThreadPoolExecutorService.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected ExecutorService protectExecutor(ExecutorService executor) { return JBossExecutors.protectedBlockingExecutorService((BlockingExecutor) executor); }
Example #10
Source File: ManagedQueueExecutorService.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected ExecutorService protectExecutor(ExecutorService executor) { return JBossExecutors.protectedBlockingExecutorService((BlockingExecutor) executor); }
Example #11
Source File: StatisticsExecutorImpl.java From ironjacamar with Eclipse Public License 1.0 | 4 votes |
/** * StatisticsExecutorImpl constructor * @param realExecutor the real executor we are delegating */ public StatisticsExecutorImpl(BlockingExecutor realExecutor) { this.realExecutor = realExecutor; }
Example #12
Source File: WorkManager.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Set the executor for short running tasks * @param executor The executor */ public void setShortRunningThreadPool(BlockingExecutor executor);
Example #13
Source File: WorkManager.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Set the executor for long running tasks * @param executor The executor */ public void setLongRunningThreadPool(BlockingExecutor executor);
Example #14
Source File: WorkManager.java From ironjacamar with Eclipse Public License 1.0 | 2 votes |
/** * Set the executor for short running tasks * @param executor The executor */ public void setShortRunningThreadPool(BlockingExecutor executor);
Example #15
Source File: WorkManager.java From ironjacamar with Eclipse Public License 1.0 | 2 votes |
/** * Set the executor for long running tasks * @param executor The executor */ public void setLongRunningThreadPool(BlockingExecutor executor);