-
Notifications
You must be signed in to change notification settings - Fork 767
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
Virtual thread compatible #489
base: springboot3
Are you sure you want to change the base?
Conversation
* @Create 2024/10/14 15:33 | ||
* @Version 1.0 | ||
*/ | ||
public class VirtualThreadExecutorAdapter implements ExecutorAdapter<ExecutorService>{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否作为单独模块引入更好
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是指不实现ExecutorAdapter吗,感觉是属于adapter这个逻辑的。之前是想把ExecutorAdapter做一个重构,和yanhom哥聊过,说是目前不要改太多东西,重写的方法就空实现就好了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是指不实现ExecutorAdapter吗,感觉是属于adapter这个逻辑的。之前是想把ExecutorAdapter做一个重构,和yanhom哥聊过,说是目前不要改太多东西,重写的方法就空实现就好了
virtual thread是JDK21的,所以在想是否使用一个新模块来处理较好。不过简单来做应该也不用,做好版本判断
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是指不实现ExecutorAdapter吗,感觉是属于adapter这个逻辑的。之前是想把ExecutorAdapter做一个重构,和yanhom哥聊过,说是目前不要改太多东西,重写的方法就空实现就好了
virtual thread是JDK21的,所以在想是否使用一个新模块来处理较好。不过简单来做应该也不用,做好版本判断
确实感觉开个新模块会方便些,做重构的话也对以前的功能没有影响
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是指不实现ExecutorAdapter吗,感觉是属于adapter这个逻辑的。之前是想把ExecutorAdapter做一个重构,和yanhom哥聊过,说是目前不要改太多东西,重写的方法就空实现就好了
virtual thread是JDK21的,所以在想是否使用一个新模块来处理较好。不过简单来做应该也不用,做好版本判断
目前实现看也没依赖到jdk21的特性,还是基于ExecutorService体系来做的,放core也行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是指不实现ExecutorAdapter吗,感觉是属于adapter这个逻辑的。之前是想把ExecutorAdapter做一个重构,和yanhom哥聊过,说是目前不要改太多东西,重写的方法就空实现就好了
virtual thread是JDK21的,所以在想是否使用一个新模块来处理较好。不过简单来做应该也不用,做好版本判断
目前实现看也没依赖到jdk21的特性,还是基于ExecutorService体系来做的,放core也行
adapter里有点东西如果不依赖jdk21应该会报错,我看看能不能改改吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是指不实现ExecutorAdapter吗,感觉是属于adapter这个逻辑的。之前是想把ExecutorAdapter做一个重构,和yanhom哥聊过,说是目前不要改太多东西,重写的方法就空实现就好了
virtual thread是JDK21的,所以在想是否使用一个新模块来处理较好。不过简单来做应该也不用,做好版本判断
目前实现看也没依赖到jdk21的特性,还是基于ExecutorService体系来做的,放core也行
adapter里有点东西如果不依赖jdk21应该会报错,我看看能不能改改吧
有个VersionUtil工具类看看能不能处理下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是指不实现ExecutorAdapter吗,感觉是属于adapter这个逻辑的。之前是想把ExecutorAdapter做一个重构,和yanhom哥聊过,说是目前不要改太多东西,重写的方法就空实现就好了
virtual thread是JDK21的,所以在想是否使用一个新模块来处理较好。不过简单来做应该也不用,做好版本判断
目前实现看也没依赖到jdk21的特性,还是基于ExecutorService体系来做的,放core也行
adapter里有点东西如果不依赖jdk21应该会报错,我看看能不能改改吧
有个VersionUtil工具类看看能不能处理下
No description provided.