sofa-tracer
sofa-tracer copied to clipboard
any plan to integrate spring scheduled
is there any plan to integrate spring scheduled
Spring Scheduled?
Maybe you can customize your thread pool,rewrite the execute method, wrap Runnable into SofaTracerRunnable。
public class XxxThreadPoolTaskExecutor extends ThreadPoolTaskExecutor {
@Override
public void execute(Runnable runnable) {
super.execute(new SofaTracerRunnable(runnable));
}
}
end: replace the thread pool that comes with Spring。