Interface VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder
- Enclosing interface:
VirtualThreads.VirtualThreadSupport
public static interface VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder
This type is equivalent to the Thread.Builder.OfVirtual returned by
Thread.ofVirtual() in JDK-21+.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfactory()inheritInheritableThreadLocals(boolean inherit) Sets the threads name.Sets the threads name prefix, and the starting value of a counter which is appended to the prefix and incremented for subsequent threads.
-
Method Details
-
name
Sets the threads name. -
name
VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder name(@Safe @Safe String prefix, long start) Sets the threads name prefix, and the starting value of a counter which is appended to the prefix and incremented for subsequent threads. -
inheritInheritableThreadLocals
VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder inheritInheritableThreadLocals(boolean inherit) -
uncaughtExceptionHandler
VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder uncaughtExceptionHandler(Thread.UncaughtExceptionHandler ueh) -
unstarted
-
start
-
factory
ThreadFactory factory()
-