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

Agent方式时,Executor的submit、execute方法禁止重写 #2

Closed
oldratlee opened this issue Oct 14, 2013 · 1 comment
Closed
Assignees
Milestone

Comments

@oldratlee
Copy link
Member

oldratlee commented Oct 14, 2013

这样可以避免 Agent插入的TTL逻辑不被丢掉

@ghost ghost assigned oldratlee Oct 16, 2013
@oldratlee
Copy link
Member Author

oldratlee commented Aug 27, 2018

新建这个Issue原来的想法 是因为:

用户代码中继承java.util.concurrent.ThreadPoolExecutorjava.util.concurrent.ScheduledThreadPoolExecutor,覆盖了executesubmitschedule等提交任务的方法,并且没有调用父类的方法。

修改线程池类的实现,executesubmitschedule等提交任务的方法禁止这些被覆盖,可以规避这个问题。

现在分析,认为这个Issue没有意义。原因如下:

重写Executorsubmitexecute方法而不调用 父类方法,几乎不可能 扩展实现出一个功能正常的 线程池

@oldratlee oldratlee changed the title Agent方式时,Executor的submit、execute方法禁止重载 Agent方式时,Executor的submit、execute方法禁止重写 Aug 27, 2018
@oldratlee oldratlee modified the milestones: future, 2.7.0 Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant