You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shenyu.apache.org by ChenBin <ch...@163.com> on 2022/01/21 07:37:51 UTC

Used Wheel-Timer instead of ScheduledExecutorService class

Hi Community:

Could u please help me review and approve pr:

1.Use Wheel-Timer to replace part of the ScheduledExecutorService class.
2.Add a Timer-task that has been executed in a loop, but can be manually canceled.

[1]: https://github.com/apache/incubator-shenyu/pull/2802 <https://github.com/apache/incubator-shenyu/pull/2802>

Many thanks.

回复: Used Wheel-Timer instead of ScheduledExecutorService class

Posted by hutaishi <hu...@qq.com.INVALID>.
This can't, Netty&nbsp; HashedWheelTimer is single thread. &nbsp; If we implement the multithreaded version,i think it can.
Personal views, for reference only





------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "dev"                                                                                    <xiaoyu@apache.org&gt;;
发送时间:&nbsp;2022年1月21日(星期五) 晚上6:07
收件人:&nbsp;"dev"<dev@shenyu.apache.org&gt;;

主题:&nbsp;Re: Used Wheel-Timer instead of ScheduledExecutorService class



Hi can replace all ScheduledExecutorService?

ChenBin <chenbing399@163.com&gt; 于2022年1月21日周五 15:38写道:
&gt;
&gt; Hi Community:
&gt;
&gt; Could u please help me review and approve pr:
&gt;
&gt; 1.Use Wheel-Timer to replace part of the ScheduledExecutorService class.
&gt; 2.Add a Timer-task that has been executed in a loop, but can be manually canceled.
&gt;
&gt; [1]: https://github.com/apache/incubator-shenyu/pull/2802 <https://github.com/apache/incubator-shenyu/pull/2802&gt;
&gt;
&gt; Many thanks.

Re: Used Wheel-Timer instead of ScheduledExecutorService class

Posted by XiaoYu <xi...@apache.org>.
Hi can replace all ScheduledExecutorService?

ChenBin <ch...@163.com> 于2022年1月21日周五 15:38写道:
>
> Hi Community:
>
> Could u please help me review and approve pr:
>
> 1.Use Wheel-Timer to replace part of the ScheduledExecutorService class.
> 2.Add a Timer-task that has been executed in a loop, but can be manually canceled.
>
> [1]: https://github.com/apache/incubator-shenyu/pull/2802 <https://github.com/apache/incubator-shenyu/pull/2802>
>
> Many thanks.