添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
ThreadFactoryBuilder setUncaughtExceptionHandler ( Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
设置未捕获异常的处理方式

setThreadFactory

public ThreadFactoryBuilder setThreadFactory(ThreadFactory backingThreadFactory)
设置用于创建基础线程的线程工厂
Parameters:
backingThreadFactory - 用于创建基础线程的线程工厂
Returns:

setNamePrefix

public ThreadFactoryBuilder setNamePrefix(String namePrefix)
设置线程名前缀,例如设置前缀为hutool-thread-,则线程名为hutool-thread-1之类。
Parameters:
namePrefix - 线程名前缀
Returns:

setUncaughtExceptionHandler

public ThreadFactoryBuilder setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
设置未捕获异常的处理方式
Parameters:
uncaughtExceptionHandler - Thread.UncaughtExceptionHandler
Returns: