Package org.apache.pekko.dispatch
Class VirtualThreadSupport$
java.lang.Object
org.apache.pekko.dispatch.VirtualThreadSupport$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VirtualThreadSupport$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTry to get the default scheduler of virtual thread.boolean
Is virtual thread supportednewThreadPerTaskExecutor
(ThreadFactory threadFactory) Create a newThreadPerTaskExecutor with the specified thread factory.newVirtualThreadFactory
(String prefix) Create a virtual thread factory with the default Virtual Thread executor.newVirtualThreadFactory
(String prefix, ExecutorService executor) Create a virtual thread factory with the specified executor as the scheduler of virtual thread.zero()
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
VirtualThreadSupport$
public VirtualThreadSupport$()
-
-
Method Details
-
zero
-
isSupported
public boolean isSupported()Is virtual thread supported -
newThreadPerTaskExecutor
Create a newThreadPerTaskExecutor with the specified thread factory. -
newVirtualThreadFactory
Create a virtual thread factory with the default Virtual Thread executor. -
newVirtualThreadFactory
Create a virtual thread factory with the specified executor as the scheduler of virtual thread. -
getVirtualThreadDefaultScheduler
Try to get the default scheduler of virtual thread.
-