v1.0.3一些bug修改和一些模块重构优化

This commit is contained in:
userA
2023-04-26 02:50:00 +08:00
parent 1233ca8a00
commit 3f37176772
22 changed files with 416 additions and 24 deletions

View File

@@ -75,6 +75,10 @@ public class FileCacheManager {
return false;
}
public List<FileCache> getRunnableFileCaches(){
return this.fileCaches;
}
class Watcher implements Runnable{
@Override
@@ -85,7 +89,7 @@ public class FileCacheManager {
BlockingQueue fileChannel = cache.getFileChannel();
if(fileChannel.isEmpty()){
if(cache.needAutoSync()){
logger.debug("检测到需要强制刷新的文件 {}",cache.getFileName());
logger.info("检测到需要强制刷新的文件 {}",cache.getFileName());
autoSyncer.submit(new AutoSyncer(cache));
}
}