Java Code Examples for com.ruoyi.common.utils.Threads#printException()
The following examples show how to use
com.ruoyi.common.utils.Threads#printException() .
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: ThreadPoolConfig.java From supplierShop with MIT License | 5 votes |
/** * 执行周期性或定时任务 */ @Bean(name = "scheduledExecutorService") protected ScheduledExecutorService scheduledExecutorService() { return new ScheduledThreadPoolExecutor(corePoolSize, new BasicThreadFactory.Builder().namingPattern("schedule-pool-%d").daemon(true).build()) { @Override protected void afterExecute(Runnable r, Throwable t) { super.afterExecute(r, t); Threads.printException(r, t); } }; }
Example 2
Source File: ThreadPoolConfig.java From RuoYi-Vue with MIT License | 5 votes |
/** * 执行周期性或定时任务 */ @Bean(name = "scheduledExecutorService") protected ScheduledExecutorService scheduledExecutorService() { return new ScheduledThreadPoolExecutor(corePoolSize, new BasicThreadFactory.Builder().namingPattern("schedule-pool-%d").daemon(true).build()) { @Override protected void afterExecute(Runnable r, Throwable t) { super.afterExecute(r, t); Threads.printException(r, t); } }; }
Example 3
Source File: ThreadPoolConfig.java From RuoYi with Apache License 2.0 | 5 votes |
@Bean(name = "scheduledExecutorService") protected ScheduledExecutorService scheduleTaskExuctor() { return new ScheduledThreadPoolExecutor(corePoolSize, new BasicThreadFactory.Builder().namingPattern("schedule-pool-%d").daemon(true).build()){ @Override protected void afterExecute(Runnable r, Throwable t){ super.afterExecute(r, t); Threads.printException(r, t); } }; }