zj
2024-06-03 3603ecb207f7e712c635f19531e05fac4d19e53f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package project.monitor.job.balanceof;
 
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
 
import kernel.util.ThreadUtils;
 
public class EthBalanceOffLineEventRejectExecutingHandler implements RejectedExecutionHandler {
 
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
 
        //等1秒后重试
        ThreadUtils.sleep(1000);
        executor.execute(r);
 
    }
 
}