类 DefaultThreadFactory

java.lang.Object
org.tio.utils.thread.pool.DefaultThreadFactory
所有已实现的接口:
ThreadFactory

public class DefaultThreadFactory extends Object implements ThreadFactory
作者:
tanyaowu 2017年4月28日 下午1:30:39
  • 方法详细资料

    • getInstance

      public static DefaultThreadFactory getInstance(String threadName)
    • getInstance

      public static DefaultThreadFactory getInstance(String threadName, Integer priority)
      Gets the single INSTANCE of DefaultThreadFactory.
      参数:
      threadName - the thread name
      priority - the priority
      返回:
      single INSTANCE of DefaultThreadFactory
    • getThreadPoolName

      public String getThreadPoolName()
      Gets the thread pool name.
      返回:
      the thread pool name
    • newThread

      public Thread newThread(Runnable r)
      指定者:
      newThread 在接口中 ThreadFactory
      参数:
      r -
      返回:
      另请参阅:
    • setThreadName

      public void setThreadName(String threadName)
      Sets the thread name.
      参数:
      threadName - the new thread name