Interface StructuredTaskScope.Configuration

Enclosing interface:
StructuredTaskScopePREVIEW<T,R>

public static sealed interface StructuredTaskScope.Configuration
Configuration is a preview API of the Java platform.
Programs can only use Configuration when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Represents the configuration for a StructuredTaskScope.

The configuration for a StructuredTaskScope consists of a ThreadFactory to create threads, an optional name for the scope, and an optional timeout. The name is intended for monitoring and management purposes.

Creating a StructuredTaskScope with its 2-arg openPREVIEW method allows a different configuration to be used. The operator specified to the open method is applied to the default configuration and returns the configuration for the StructuredTaskScope under construction. The operator can use the with- prefixed methods defined here to specify the components of the configuration to use.

Unless otherwise specified, passing a null argument to a method in this class will cause a NullPointerException to be thrown.

Since:
25