新版仿ok交易所-后端
yml
zyy
2025-12-01 db07dc37fda3ac90c6b8fd7eef6da8bf3c7aa1a1
1
2
3
4
5
6
7
8
9
10
11
12
package com.yami.trading.common.util;
 
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
 
public class OffLineEventRejectExecutingHandler implements RejectedExecutionHandler {
    
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        ThreadUtils.sleep(1000 * 10);
        executor.execute(r);
    }
}