新版仿ok交易所-后端
1
zyy
2025-10-11 11fd59b73e1f6a69d28ef1513ca94903f22d076a
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);
    }
}