-
Notifications
You must be signed in to change notification settings - Fork 19
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
Provide external ThreadFactoryBuilder/ThreadFactory #355
Comments
Hi Pablo, we will review this with our engineering team and report back. |
Hi @pablo, I submitted the Feature Request, our product managers go through the new features backlog frequently and will decide if it will be included in a certain version. I am closing this ticket for now, please let me know if you have any questions, we can re-open it anytime. Thanks |
Thanks, any way to know whether the feature actually makes it to the backlog? |
First of all sorry for the delay on this feature support. After some analysis and PoCs our decision is to add the option to use Virtual Thread for customers that are using java 19 and above in our configs. To keep supporting older versions of Java we added the possibility to attach a ThreadFactory into SDK Below is an example of how handle it with Virtual Threading,
We release a rc version if you want to try which is Thanks! |
Thanks Mati, I'll see where can we integrate this new version and give it a try. Will keep you posted on results. |
With the release of Java 19 and the preview of virtual threads, it would be nice to be able to provide a ThreadFactoryBuilder implementation so that applications that are using virtual threads could do so without adding a strong dependency with a preview feature.
Why would it be nice to have the capability?
The Split SDK creates a number of background threads for synchronization purposes. Since all the threads are daemon and they spend most of the time in WAITING or TIMED_WAITING, it would be a great use case for virtual threads instead of having several OS threads.
Attached a screenshot of a thread dump with an example
Thanks.
The text was updated successfully, but these errors were encountered: