Interface StructuredTaskScope.Configuration

Enclosing interface:
StructuredTaskScope<T, R, R_X extends Throwable>

public static sealed interface StructuredTaskScope.Configuration
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 the open(UnaryOperator) or open(Joiner, UnaryOperator) 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:
28