Package org.apache.pekko.dispatch
Class VirtualThreadSupport
- java.lang.Object
- 
- org.apache.pekko.dispatch.VirtualThreadSupport
 
- 
 public class VirtualThreadSupport extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description VirtualThreadSupport()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisSupported()Is virtual thread supportedstatic java.util.concurrent.ExecutorServicenewThreadPerTaskExecutor(java.util.concurrent.ThreadFactory threadFactory)static java.util.concurrent.ThreadFactorynewVirtualThreadFactory(java.lang.String prefix)Create a virtual thread factory with a executor, the executor will be used as the scheduler of virtual thread.
 
- 
- 
- 
Method Detail- 
isSupportedpublic static boolean isSupported() Is virtual thread supported
 - 
newVirtualThreadFactorypublic static 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.
 - 
newThreadPerTaskExecutorpublic static java.util.concurrent.ExecutorService newThreadPerTaskExecutor(java.util.concurrent.ThreadFactory threadFactory) 
 
- 
 
-