Skip to content

Make it possible to configure any TaskExecutor through ChannelRegistration #32081

Closed
@uumarov

Description

Affect: Spring Boot 3.2.2, spring-messaging-6.1.3

Make it possible to set SimpleAsyncTaskExecutor for a channel through ChannelRegistration.taskExecutor(taskExecutor), not only ThreadPoolTaskExecutor, to support Java 21 virtual threads. And it might be worth making the default use of SimpleAsyncTaskExecutor as channel's TaskExecutor when spring.threads.virtual.enabled=true in Spring Boot 3.2

public TaskExecutorRegistration taskExecutor(@Nullable ThreadPoolTaskExecutor taskExecutor) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

in: messagingIssues in messaging modules (jms, messaging)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions