ipo
zyy
2026-01-08 4affbdf8938d321c0926bc2b1832dfc81c317ffa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.yami.trading.admin.controller.config;
 
import com.yami.trading.common.util.ThreadUtils;
 
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
 
public class BalanceOffLineEventRejectExecutingHandler implements RejectedExecutionHandler {
 
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        //等1秒后重试
        ThreadUtils.sleep(200);
        executor.execute(r);
    }
}