public void execute(Runnable command) { pool.run(command); } }
/** Invoke stop on the thread pool if its not the class default pool. * * @param immeadiate the immeadiate flag passed to the TheadPool#stop */ protected void stopThreadPool(boolean immeadiate) { if( pool != defaultPool ) { pool.stop(immeadiate); } }
WaitingTaskWrapper wrapper = new WaitingTaskWrapper(r, simulatedTimeout); if (log.isTraceEnabled()) log.trace("starting task in thread pool"); pool.runTaskWrapper(wrapper); if (log.isTraceEnabled()) log.trace("task finished in thread pool");
WaitingTaskWrapper wrapper = new WaitingTaskWrapper(r, simulatedTimeout); if (log.isTraceEnabled()) log.trace("starting task in thread pool"); pool.runTaskWrapper(wrapper); if (log.isTraceEnabled()) log.trace("task finished in thread pool");
/** * Handle the notification, asynchronously invoke the listener. * * @param listener the listener to notify * @param notification the notification * @param handback the handback object */ public void handleNotification(NotificationListener listener, Notification notification, Object handback) { AsynchNotifier notifier = new AsynchNotifier(listener, notification, handback); pool.run(notifier, 0, notificationTimeout); }
/** * Instantiates a DeadMemberCleaner and assigns a thread * to execute the cleanup task. * @param notifyIfEmpty TODO */ private void launchSSOCleaner(boolean notifyIfEmpty) { SSOCleanerTask cleaner = new SSOCleanerTask(notifyIfEmpty); if (threadPool != null) { threadPool.run(cleaner); } else { Thread t = new Thread(cleaner, "ClusteredSSOCleaner"); t.setDaemon(true); t.start(); } }
executor.run(onewayRun);
threadPool.run(onewayRun);
try threadPool.run(worker);