Package org.apache.pekko.dispatch
Class VirtualThreadSupport$
- java.lang.Object
-
- org.apache.pekko.dispatch.VirtualThreadSupport$
-
public class VirtualThreadSupport$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static VirtualThreadSupport$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description VirtualThreadSupport$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSupported()
Is virtual thread supportedjava.util.concurrent.ExecutorService
newThreadPerTaskExecutor(java.util.concurrent.ThreadFactory threadFactory)
java.util.concurrent.ThreadFactory
newVirtualThreadFactory(java.lang.String prefix)
Create a virtual thread factory with a executor, the executor will be used as the scheduler of virtual thread.
-
-
-
Field Detail
-
MODULE$
public static final VirtualThreadSupport$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
isSupported
public boolean isSupported()
Is virtual thread supported
-
newVirtualThreadFactory
public java.util.concurrent.ThreadFactory newVirtualThreadFactory(java.lang.String prefix)
Create a virtual thread factory with a executor, the executor will be used as the scheduler of virtual thread.
-
newThreadPerTaskExecutor
public java.util.concurrent.ExecutorService newThreadPerTaskExecutor(java.util.concurrent.ThreadFactory threadFactory)
-
-