Uses of Interface
java.lang.Thread.Builder
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
-
Uses of Thread.BuilderPREVIEW in java.lang
Modifier and TypeInterfaceDescriptionstatic interface
Preview.A builder for creating a platformThread
orThreadFactory
that creates platform threads.static interface
Preview.A builder for creating a virtualThread
orThreadFactory
that creates virtual threads.Modifier and TypeMethodDescriptionThread.Builder.allowSetThreadLocals
(boolean allow) Sets whether the thread is allowed to set values for its copy of thread-local variables.Thread.Builder.inheritInheritableThreadLocals
(boolean inherit) Sets whether the thread inherits the initial values of inheritable-thread-local variables from the constructing thread.Sets the thread name.Sets the thread name to be the concatenation of a string prefix and the string representation of a counter value.Thread.Builder.uncaughtExceptionHandler
(Thread.UncaughtExceptionHandler ueh) Sets the uncaught exception handler.