Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAMEL-20187: Add basic support of virtual threads #12292

Merged
merged 1 commit into from Dec 6, 2023

Conversation

essobedo
Copy link
Contributor

@essobedo essobedo commented Dec 1, 2023

Fixes https://issues.apache.org/jira/browse/CAMEL-20187

Motivation

Java 21 brings virtual threads and we would like to have a preview of it in Camel.

Modification:

  • Propose a Java 21 version of DefaultThreadPoolFactory and CamelThreadFactory inside multi-release jars

Copy link
Contributor

github-actions bot commented Dec 1, 2023

🌟 Thank you for your contribution to the Apache Camel project! 🌟

🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run

  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot.

  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.

  • Build and test logs are available in the Summary page. Only Apache Camel committers have access to the summary.

  • ⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@davsclaus
Copy link
Contributor

It would be good to have a bit of doc on this, such as at
https://camel.apache.org/manual/threading-model.html

And we can then try this for 4.3 as a non LTS release to see if we can have it work and build for Gregor.

Copy link
Contributor

@orpiske orpiske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks cool!!! If we can create a nice pattern for multi-release support, we can potentially use the same approach in a few other areas where this could be useful.

@essobedo essobedo force-pushed the virtual-threads-basic-support branch from 3c70161 to d18c603 Compare December 4, 2023 15:58
@github-actions github-actions bot added the docs label Dec 4, 2023
@essobedo essobedo force-pushed the virtual-threads-basic-support branch from d18c603 to 853934d Compare December 4, 2023 18:27
@github-actions github-actions bot added the ci label Dec 4, 2023
@essobedo essobedo marked this pull request as ready for review December 4, 2023 19:18
@essobedo essobedo force-pushed the virtual-threads-basic-support branch from c6e27d5 to 3699aac Compare December 5, 2023 15:43
@essobedo essobedo force-pushed the virtual-threads-basic-support branch from 3699aac to 34f3abb Compare December 5, 2023 17:59
@essobedo essobedo merged commit 6ae8aa7 into main Dec 6, 2023
3 checks passed
@essobedo essobedo deleted the virtual-threads-basic-support branch December 6, 2023 11:24
@essobedo essobedo changed the title Add basic support of virtual threads CAMEL-20187: Add basic support of virtual threads Dec 6, 2023
ryan-highley pushed a commit to ryan-highley/camel that referenced this pull request Apr 8, 2024
## Motivation

Java 21 brings virtual threads and we would like to have a preview of it in Camel.

## Modification:

* Propose a Java 21 version of `DefaultThreadPoolFactory` and `CamelThreadFactory` inside multi-release jars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants