Skip to content

Add DelegatingSecurityContextThreadFactory #19075

@pkunk

Description

@pkunk

Expected Behavior

Add DelegatingSecurityContextThreadFactory similar to other DelegatingSecurityContext* classes.

Current Behavior

There is no simple way to propagate context into libraries accepting ThreadFactory as argument and not Executor.

Context

Main motivation for this change is an ability to propagate Security Context to Structured Concurrency Subtasks.
Proposed Structured Concurrency API accepts thread factory to create the thread to execute each subtask.
See Configuration section in JEP 533.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions