Class ThreadCreator

java.lang.Object
org.infinispan.commons.jdkspecific.ThreadCreator

public class ThreadCreator extends Object
Since:
11.0
Author:
Tristan Tarrant <tristan@infinispan.org>
  • Constructor Details

    • ThreadCreator

      public ThreadCreator()
  • Method Details

    • useVirtualThreads

      public static boolean useVirtualThreads()
    • createThread

      public static Thread createThread(ThreadGroup threadGroup, Runnable target, boolean useVirtualThread)
    • createBlockingExecutorService

      public static Optional<ExecutorService> createBlockingExecutorService()