public static ThreadFactory buildThreadFactory(@NotNull String threadNamePrefix, @NotNull boolean daemon) {
		return new ThreadFactoryBuilder().setNameFormat(threadNamePrefix + "-%d").setDaemon(daemon).build();
	}
public static ThreadFactory buildThreadFactory ( @ NotNull String threadNamePrefix , @ NotNull boolean daemon ) { return new ThreadFactoryBuilder ( ) . setNameFormat ( threadNamePrefix + "-%d" ) . setDaemon ( daemon ) . build ( ) ; }
可设定是否daemon, daemon线程在主线程已执行完毕时, 不会阻塞应用不退出, 而非daemon线程则会阻塞.

@see buildThreadFactory