Class ThreadUtils

java.lang.Object
com.github.twitch4j.common.util.ThreadUtils

public class ThreadUtils extends Object
  • Constructor Details

    • ThreadUtils

      public ThreadUtils()
  • Method Details

    • getDefaultScheduledThreadPoolExecutor

      public static ScheduledThreadPoolExecutor getDefaultScheduledThreadPoolExecutor(String namePrefix, Integer poolSize)
      The default thread pool executor used in twitch4j

      PubSub: 2 Thread(s) Chat: 1 Thread(s) ClientHelper: 2 Thread(s)

      Returns:
      ScheduledThreadPoolExecutor