Skip to content

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

@hnty545

Description

@hnty545

我使用的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枚举里各个枚举的逻辑

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions