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.
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.