/** * Stops all executors and running tasks. */ private void shutdown() { if (execSvc != null) execSvc.shutdown(5000); if (msgExecSvc != null) msgExecSvc.shutdownNow(); try { job.dispose(true); } catch (IgniteCheckedException e) { U.error(log, "Failed to dispose job.", e); } }
job.dispose(false);
job.dispose(false);