Skip to content

Commit

Permalink
feat: HconvertExcel 初版 (#301)
Browse files Browse the repository at this point in the history
Signed-off-by: unknowIfGuestInDream <tang97155@163.com>
  • Loading branch information
unknowIfGuestInDream committed Feb 28, 2023
1 parent 8f4e856 commit 63338ac
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 271 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void initialize() throws Exception {
keepAliveTime = 30;
unit = TimeUnit.SECONDS;
queueSize = 200;
threadPreName = "sample-";
threadPreName = "sample-%d";
handler = new ThreadPoolExecutor.CallerRunsPolicy();
}

Expand All @@ -68,6 +68,6 @@ public static ThreadPoolExecutor get() {
private static class SingletonInstance {
private static final ThreadPoolExecutor INSTANCE = new ThreadPoolExecutor(corePoolSize, maximumPoolSize,
keepAliveTime, unit, new LinkedBlockingQueue<>(queueSize),
new BasicThreadFactory.Builder().namingPattern(threadPreName).build(), handler);
new BasicThreadFactory.Builder().namingPattern(threadPreName).daemon(true).build(), handler);
}
}
Loading

0 comments on commit 63338ac

Please sign in to comment.