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

有些策略是不是没有实现 #12

Open
hnty545 opened this issue Jun 3, 2019 · 1 comment
Open

有些策略是不是没有实现 #12

hnty545 opened this issue Jun 3, 2019 · 1 comment

Comments

@hnty545
Copy link

hnty545 commented Jun 3, 2019

我使用的3.0库
策略的核心逻辑是不是TcStaticsManagerImpl的
public void startSchedule() {
// if debug time is 5 min
if (StaticsConfig.DEBUG && TcStatInterface.uploadPolicy == TcStatInterface.UploadPolicy.UPLOAD_POLICY_DEVELOPMENT) {
statiPollMgr.start(5 * 1000);
LogUtil.d(TAG, "schedule is start");
} else {
if (NetworkUtil.isWifi(mContext)) {
statiPollMgr.start(TcStatInterface.getIntervalRealtime() * 60 * 1000);
} else {
statiPollMgr.start(TcStatInterface.UPLOAD_TIME_THIRTY * 60 * 1000);
}
}
}

没有体现UploadPolicy枚举里各个枚举的逻辑

@hnty545
Copy link
Author

hnty545 commented Jun 3, 2019

我从源码里看到你在一些地方埋点了,比如界面切换、前后台切换、点击控件,这些地方触发startSchedule,但是在startSchedule没有实现那些枚举的策略,是不是没有开发完呢?

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

1 participant