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

This commit is contained in:
everywhere.z
2025-08-27 15:09:04 +08:00
parent 269bc22ea5
commit 9538c12a25
3 changed files with 3 additions and 3 deletions

View File

@@ -529,7 +529,7 @@ public class LiteflowConfig {
public Boolean getEnableVirtualThread() { public Boolean getEnableVirtualThread() {
if (ObjectUtil.isNull(enableVirtualThread)) { if (ObjectUtil.isNull(enableVirtualThread)) {
return Boolean.FALSE; return Boolean.TRUE;
} else { } else {
return enableVirtualThread; return enableVirtualThread;
} }

View File

@@ -212,7 +212,7 @@
"type": "java.lang.Boolean", "type": "java.lang.Boolean",
"description": "Whether to enable virtual threads(Only in jdk21).", "description": "Whether to enable virtual threads(Only in jdk21).",
"sourceType": "com.yomahub.liteflow.springboot.LiteflowProperty", "sourceType": "com.yomahub.liteflow.springboot.LiteflowProperty",
"defaultValue": false "defaultValue": true
}, },
{ {
"name": "liteflow.chain-cache.enabled", "name": "liteflow.chain-cache.enabled",

View File

@@ -24,7 +24,7 @@ liteflow.global-thread-pool-size=64
liteflow.global-thread-pool-queue-size=512 liteflow.global-thread-pool-queue-size=512
liteflow.global-thread-pool-executor-class=com.yomahub.liteflow.thread.LiteFlowDefaultGlobalExecutorBuilder liteflow.global-thread-pool-executor-class=com.yomahub.liteflow.thread.LiteFlowDefaultGlobalExecutorBuilder
liteflow.enable-node-instance-id=false liteflow.enable-node-instance-id=false
liteflow.enable-virtual-thread=false liteflow.enable-virtual-thread=true
liteflow.chain-cache.enabled=false liteflow.chain-cache.enabled=false
liteflow.chain-cache.capacity=10000 liteflow.chain-cache.capacity=10000