Class VirtualThreadSupport$

java.lang.Object
org.apache.pekko.dispatch.VirtualThreadSupport$

public class VirtualThreadSupport$ extends Object
  • Field Details

    • MODULE$

      public static final VirtualThreadSupport$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • VirtualThreadSupport$

      public VirtualThreadSupport$()
  • Method Details

    • zero

      public Long zero()
    • isSupported

      public boolean isSupported()
      Is virtual thread supported
    • newThreadPerTaskExecutor

      public ExecutorService newThreadPerTaskExecutor(ThreadFactory threadFactory)
      Create a newThreadPerTaskExecutor with the specified thread factory.
    • newVirtualThreadFactory

      public ThreadFactory newVirtualThreadFactory(String prefix)
      Create a virtual thread factory with the default Virtual Thread executor.
    • newVirtualThreadFactory

      public ThreadFactory newVirtualThreadFactory(String prefix, ExecutorService executor)
      Create a virtual thread factory with the specified executor as the scheduler of virtual thread.
    • getVirtualThreadDefaultScheduler

      public ForkJoinPool getVirtualThreadDefaultScheduler()
      Try to get the default scheduler of virtual thread.