Skip to content

Commit 8fe385d

Browse files
committed
重构 Linear 存储模块
1 parent 9cdb343 commit 8fe385d

File tree

2 files changed

+320
-164
lines changed

2 files changed

+320
-164
lines changed

leaves-server/src/main/java/org/leavesmc/leaves/LeavesConfig.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,15 @@ public int getLinearFlushThreads() {
12451245
@GlobalConfig(value = "flush-delay-ms", lock = true)
12461246
public int flushDelayMs = 100;
12471247

1248+
@GlobalConfig(value = "region-unload-idle-ms", lock = true)
1249+
public int regionUnloadIdleMs = 600000;
1250+
1251+
@GlobalConfig(value = "region-unload-check-interval-ms", lock = true)
1252+
public int regionUnloadCheckIntervalMs = 30000;
1253+
1254+
@GlobalConfig(value = "max-flush-per-run", lock = true)
1255+
public int maxFlushPerRun = 256;
1256+
12481257
@GlobalConfig(value = "use-virtual-thread", lock = true)
12491258
public boolean useVirtualThread = true;
12501259

0 commit comments

Comments
 (0)