mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
feature #ICUMKV 全面支持jdk21,以及支持jdk21中的虚拟线程
This commit is contained in:
@@ -16,8 +16,7 @@ public class CustomChainThreadExecutor implements ExecutorBuilder {
|
||||
if (ObjectUtil.isNull(liteflowConfig)) {
|
||||
liteflowConfig = new LiteflowConfig();
|
||||
}
|
||||
return buildDefaultExecutor(16, 16,
|
||||
512, "customer-chain-thead");
|
||||
return buildCommonExecutor(16, 16, 512, "customer-chain-thead");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,8 +16,7 @@ public class CustomGlobalThreadExecutor implements ExecutorBuilder {
|
||||
if (ObjectUtil.isNull(liteflowConfig)) {
|
||||
liteflowConfig = new LiteflowConfig();
|
||||
}
|
||||
return buildDefaultExecutor(16, 16,
|
||||
512, "customer-global-thead");
|
||||
return buildCommonExecutor(16, 16, 512, "customer-global-thead");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,8 +16,7 @@ public class CustomLoopThreadExecutor implements ExecutorBuilder {
|
||||
if (ObjectUtil.isNull(liteflowConfig)) {
|
||||
liteflowConfig = new LiteflowConfig();
|
||||
}
|
||||
return buildDefaultExecutor(16, 16,
|
||||
512, "customer-loop-thead");
|
||||
return buildCommonExecutor(16, 16, 512, "customer-loop-thead");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,8 +16,7 @@ public class CustomWhenThreadExecutor implements ExecutorBuilder {
|
||||
if (ObjectUtil.isNull(liteflowConfig)) {
|
||||
liteflowConfig = new LiteflowConfig();
|
||||
}
|
||||
return buildDefaultExecutor(16, 16,
|
||||
512, "customer-when-thead");
|
||||
return buildCommonExecutor(16, 16, 512, "customer-when-thead");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ public class CustomThreadExecutor1 implements ExecutorBuilder {
|
||||
if (ObjectUtil.isNull(liteflowConfig)) {
|
||||
liteflowConfig = new LiteflowConfig();
|
||||
}
|
||||
return buildDefaultExecutor(liteflowConfig.getGlobalThreadPoolSize(), liteflowConfig.getGlobalThreadPoolSize(),
|
||||
return buildCommonExecutor(liteflowConfig.getGlobalThreadPoolSize(), liteflowConfig.getGlobalThreadPoolSize(),
|
||||
liteflowConfig.getGlobalThreadPoolQueueSize(), "customer-when-1-thead-");
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ public class CustomThreadExecutor2 implements ExecutorBuilder {
|
||||
if (ObjectUtil.isNull(liteflowConfig)) {
|
||||
liteflowConfig = new LiteflowConfig();
|
||||
}
|
||||
return buildDefaultExecutor(liteflowConfig.getGlobalThreadPoolSize(), liteflowConfig.getGlobalThreadPoolSize(),
|
||||
return buildCommonExecutor(liteflowConfig.getGlobalThreadPoolSize(), liteflowConfig.getGlobalThreadPoolSize(),
|
||||
liteflowConfig.getGlobalThreadPoolQueueSize(), "customer-when-2-thead-");
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ public class CustomThreadExecutor3 implements ExecutorBuilder {
|
||||
if (ObjectUtil.isNull(liteflowConfig)) {
|
||||
liteflowConfig = new LiteflowConfig();
|
||||
}
|
||||
return buildDefaultExecutor(liteflowConfig.getGlobalThreadPoolSize(), liteflowConfig.getGlobalThreadPoolSize(),
|
||||
return buildCommonExecutor(liteflowConfig.getGlobalThreadPoolSize(), liteflowConfig.getGlobalThreadPoolSize(),
|
||||
liteflowConfig.getGlobalThreadPoolQueueSize(), "customer-when-3-thead-");
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ public class CustomWhenThreadPoolELSpringbootTest extends BaseTest {
|
||||
LiteflowResponse response = flowExecutor.execute2Resp("chain", "arg");
|
||||
DefaultContext context = response.getFirstContextBean();
|
||||
Assertions.assertTrue(response.isSuccess());
|
||||
Assertions.assertTrue(context.getData("threadName").toString().startsWith("global-thread-1"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,7 +16,7 @@ public class CustomThreadExecutor implements ExecutorBuilder {
|
||||
if (ObjectUtil.isNull(liteflowConfig)) {
|
||||
liteflowConfig = new LiteflowConfig();
|
||||
}
|
||||
return buildDefaultExecutor(liteflowConfig.getGlobalThreadPoolSize(), liteflowConfig.getGlobalThreadPoolSize(),
|
||||
return buildCommonExecutor(liteflowConfig.getGlobalThreadPoolSize(), liteflowConfig.getGlobalThreadPoolSize(),
|
||||
liteflowConfig.getGlobalThreadPoolQueueSize(), "customer-loop-thead-");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user