Skip to content

Use CustomizableThreadFactory as the default for ThreadPoolTaskExecutor [SPR-4564] #9241

@spring-projects-issues

Description

@spring-projects-issues

Kenny MacLeod opened SPR-4564 and commented

The current default TheadFactory used by ThreadPoolTaskExecutor is Executors.defaultThreadFactory(). I suggest that a more useful default would be a CustomizableThreadFactory with the ThreadPoolTaskExecutor's bean name as the thread name prefix.

If not the default, then perhaps an easier way to specify it than manually injecting the thread factory?


Affects: 2.5.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions