Package org.apache.pekko.dispatch
Class VirtualThreadSupport$
java.lang.Object
org.apache.pekko.dispatch.VirtualThreadSupport$
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final VirtualThreadSupport$Static reference to the singleton instance of this Scala object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionTry to get the default scheduler of virtual thread.booleanIs virtual thread supportednewThreadPerTaskExecutor(ThreadFactory threadFactory) Create a newThreadPerTaskExecutor with the specified thread factory.newVirtualThreadFactory(String prefix, int start) Create a virtual thread factory with the default Virtual Thread executor.newVirtualThreadFactory(String prefix, int start, ExecutorService executor) Create a virtual thread factory with the default Virtual Thread executor.
- 
Field Details- 
MODULE$Static reference to the singleton instance of this Scala object.
 
- 
- 
Constructor Details- 
VirtualThreadSupport$public VirtualThreadSupport$()
 
- 
- 
Method Details- 
isSupportedpublic boolean isSupported()Is virtual thread supported
- 
newThreadPerTaskExecutorCreate a newThreadPerTaskExecutor with the specified thread factory.
- 
newVirtualThreadFactoryCreate a virtual thread factory with the default Virtual Thread executor.- Parameters:
- prefix- the prefix of the virtual thread name.
- start- the starting number of the virtual thread name, if -1, the number will not be appended.
 
- 
newVirtualThreadFactoryCreate a virtual thread factory with the default Virtual Thread executor.- Parameters:
- prefix- the prefix of the virtual thread name.
- start- the starting number of the virtual thread name, if -1, the number will not be appended.
- executor- the executor to be used as the scheduler of virtual thread. If null, the default scheduler will be used.
 
- 
getVirtualThreadDefaultSchedulerTry to get the default scheduler of virtual thread.
 
-