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

Chronos 内置的时间轮服务是哪个代码? #31

Open
flylee85 opened this issue Mar 18, 2021 · 1 comment
Open

Chronos 内置的时间轮服务是哪个代码? #31

flylee85 opened this issue Mar 18, 2021 · 1 comment

Comments

@flylee85
Copy link

No description provided.

@SchopenhauerZhang
Copy link

@flylee85 你说的是MqPushService.java吧。
其实不是严格的时间轮实现,而是根据当前的seekTimestamp去逐个seek。

 // 迭代出当前 seekTimestamp 下所有数据
        int count = 0;
        try (RocksIterator it = RDB.newIterator(CFManager.CFH_DEFAULT)) {
             // more code
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants