feature #ICUMKV 全面支持jdk21,以及支持jdk21中的虚拟线程

This commit is contained in:
everywhere.z
2025-08-26 11:23:46 +08:00
parent 55ffcab3df
commit a52a1d1616
72 changed files with 137 additions and 94 deletions

View File

@@ -16,7 +16,7 @@ public class CustomChainThreadExecutor implements ExecutorBuilder {
if (ObjectUtil.isNull(liteflowConfig)) {
liteflowConfig = new LiteflowConfig();
}
return buildDefaultExecutor(16, 16,
return buildCommonExecutor(16, 16,
512, "customer-chain-thead");
}

View File

@@ -16,7 +16,7 @@ public class CustomGlobalThreadExecutor implements ExecutorBuilder {
if (ObjectUtil.isNull(liteflowConfig)) {
liteflowConfig = new LiteflowConfig();
}
return buildDefaultExecutor(16, 16,
return buildCommonExecutor(16, 16,
512, "customer-global-thead");
}

View File

@@ -16,7 +16,7 @@ public class CustomLoopThreadExecutor implements ExecutorBuilder {
if (ObjectUtil.isNull(liteflowConfig)) {
liteflowConfig = new LiteflowConfig();
}
return buildDefaultExecutor(16, 16,
return buildCommonExecutor(16, 16,
512, "customer-loop-thead");
}

View File

@@ -16,7 +16,7 @@ public class CustomWhenThreadExecutor implements ExecutorBuilder {
if (ObjectUtil.isNull(liteflowConfig)) {
liteflowConfig = new LiteflowConfig();
}
return buildDefaultExecutor(16, 16,
return buildCommonExecutor(16, 16,
512, "customer-when-thead");
}

View File

@@ -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-");
}

View File

@@ -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-");
}

View File

@@ -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-");
}

View File

@@ -35,7 +35,6 @@ public class CustomWhenThreadPoolTest 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"));
}
/**

View File

@@ -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-");
}