@Override public void stopNow() { super.shutdownNow(); }
@Override public boolean cancel(boolean mayInterruptIfRunning) { executor.shutdownNow(); return super.cancel(mayInterruptIfRunning); } }
private void interrupt() { longCompactions.shutdownNow(); shortCompactions.shutdownNow(); }
/** * Cleanly shutdown */ public void shutdown() { executor.shutdownNow(); }
public void stop() { //triggerPool.shutdown(); triggerPool.shutdownNow(); logger.info(">>>>>>>>> xxl-job trigger thread pool shutdown success."); }
@Override public void abort(String why, Throwable e) { if (this.aborted) { return; } this.aborted = true; LOG.warn("Aborting because: " + why, e); this.executor.shutdownNow(); }
private void cancelScheduledTasks() { if (instanceInfoReplicator != null) { instanceInfoReplicator.stop(); } if (heartbeatExecutor != null) { heartbeatExecutor.shutdownNow(); } if (cacheRefreshExecutor != null) { cacheRefreshExecutor.shutdownNow(); } if (scheduler != null) { scheduler.shutdownNow(); } }
private void internalInit() { if (mThreadPoolExecutor != null && !mThreadPoolExecutor.isShutdown()) { mThreadPoolExecutor.shutdownNow(); } mThreadPoolExecutor = new ThreadPoolExecutor( CORE_POOL_SIZE, MAXIMUM_POOL_SIZE, KEEP_ALIVE_SECONDS, TimeUnit.SECONDS, sPoolWorkQueue, sThreadFactory); mThreadPoolExecutor.allowCoreThreadTimeOut(true); }
@Override public void close() throws Exception { processor.shutdown(); processor.awaitTermination(shutdownWaitMS,TimeUnit.MILLISECONDS); if (!processor.isTerminated()) { //log.error("Processor did not terminate in time"); processor.shutdownNow(); } } }
public boolean stop() { if (!running.getAndSet(false)) { return false; } LOG.info("Stopping procedure remote dispatcher"); // send stop signals timeoutExecutor.sendStopSignal(); threadPool.shutdownNow(); return true; }
public static void finish() { if(mInstance != null){ mInstance.mThreadPoolExec.shutdownNow(); mInstance.mThreadPoolExec.purge(); mInstance.mThreadPoolExec = null; mInstance = null; } } }
@Override public void close() throws Exception { processor.shutdown(); processor.awaitTermination(SHUTDOWN_WAIT_MS,TimeUnit.MILLISECONDS); if (!processor.isTerminated()) { //log.error("Processor did not terminate in time"); processor.shutdownNow(); } } }
public void expireAll() { if (FileDownloadLog.NEED_LOG) { FileDownloadLog.d(this, "expire %d tasks", mWorkQueue.size()); } mPool.shutdownNow(); init(); }
@Override public void shutdownExecutor() { List<Runnable> remainingTasks = concurrentExecutor.shutdownNow(); for (Runnable task : remainingTasks) { if (task instanceof RunnableFuture) { ((RunnableFuture<?>) task).cancel(true); } } }
@Override public void abort(String why, Throwable e) { if (this.aborted) return; this.aborted = true; LOG.warn("Aborting because: " + why, e); this.executor.shutdownNow(); }
@Override public void shutdown() { if(Monitors.isObjectRegistered(name, this)) { Monitors.unregisterObject(name, this); } executorService.shutdownNow(); threadPoolExecutor.shutdownNow(); backgroundTask.cancel(); }
public void shutDown() { try { threadPoolExecutor.shutdownNow(); LOGGER.info("stop working succeed "); } catch (Throwable t) { LOGGER.error("stop working failed ", t); } }
public void shutDown() { try { threadPoolExecutor.shutdownNow(); LOGGER.info("stop working succeed "); } catch (Throwable t) { LOGGER.error("stop working failed ", t); } }
private void shutdownAsyncGroup() { traversalQueue.clear(); traversalExecutor.shutdownNow(); try { traversalExecutor.awaitTermination(60, TimeUnit.MINUTES); } catch (InterruptedException e) { logger.error("Validating nodes: traversal has been interrupted", e); throw new RuntimeException("Traversal has been interrupted", e); } }
@After public void tearDown() { if (executor != null) { executor.shutdownNow(); } if (helperExecutor != null) { helperExecutor.shutdownNow(); } if (scheduler != null) { scheduler.shutdownNow(); } }