mirror of
https://gitee.com/BDWare/common
synced 2026-02-14 16:49:28 +00:00
fix too RejectedExecutionException of ServiceServer.executor
This commit is contained in:
@@ -53,9 +53,10 @@ public class ComponedContractResult {
|
||||
return;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
String str = null;
|
||||
cr2 =
|
||||
new ContractResult(
|
||||
ContractResult.Status.Error, new JsonPrimitive("parse str failed:"));
|
||||
ContractResult.Status.Error, new JsonPrimitive("parse str failed:" + obj.toString()));
|
||||
e.printStackTrace();
|
||||
}
|
||||
// if (cr2.status == ContractResult.Status.Error) { // 结果不是Success不参与最终结果计算
|
||||
|
||||
@@ -25,7 +25,7 @@ public class ServiceServer extends Thread {
|
||||
public static final ExecutorService executor =
|
||||
new ThreadPoolExecutor(
|
||||
8,
|
||||
15,
|
||||
Integer.MAX_VALUE,
|
||||
60,
|
||||
TimeUnit.SECONDS,
|
||||
new SynchronousQueue<>());
|
||||
|
||||
Reference in New Issue
Block a user