1
zj
2025-04-17 ff2d1f5acdadc466d7e199028ef385ae8ca277e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package project.monitor.mining.job;
 
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
 
import kernel.util.ThreadUtils;
 
public class MiningLineEventRejectExecutingHandler implements RejectedExecutionHandler {
 
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        // 等1秒后重试
        ThreadUtils.sleep(100);
        executor.execute(r);
    }
}