# Uses of Interface
java.lang.Thread.Builder

Packages that use Thread.BuilderPREVIEW
Package
Description
java.lang
Provides classes that are fundamental to the design of the Java programming language.

- ## Uses of Thread.BuilderPREVIEW in java.lang

  Subinterfaces of Thread.BuilderPREVIEW in java.lang
  Modifier and Type
  Interface
  Description
  `static interface`
  `Thread.Builder.OfPlatformPREVIEW`
  Preview.
  A builder for creating a platform `Thread` or `ThreadFactory` that creates platform threads.
  `static interface`
  `Thread.Builder.OfVirtualPREVIEW`
  Preview.
  A builder for creating a virtual `Thread` or `ThreadFactory` that creates virtual threads.
  Methods in java.lang that return Thread.BuilderPREVIEW
  Modifier and Type
  Method
  Description
  `Thread.BuilderPREVIEW`
  Thread.Builder.`allowSetThreadLocals(boolean allow)`
  Sets whether the thread is allowed to set values for its copy of thread-local variables.
  `Thread.BuilderPREVIEW`
  Thread.Builder.`inheritInheritableThreadLocals(boolean inherit)`
  Sets whether the thread inherits the initial values of inheritable-thread-local variables from the constructing thread.
  `Thread.BuilderPREVIEW`
  Thread.Builder.`name(String name)`
  Sets the thread name.
  `Thread.BuilderPREVIEW`
  Thread.Builder.`name(String prefix, long start)`
  Sets the thread name to be the concatenation of a string prefix and the string representation of a counter value.
  `Thread.BuilderPREVIEW`
  Thread.Builder.`uncaughtExceptionHandler(Thread.UncaughtExceptionHandler ueh)`
  Sets the uncaught exception handler.