当前位置: 首页>>代码示例>>Java>>正文


Java FileDownloadStatus.blockComplete方法代码示例

本文整理汇总了Java中com.liulishuo.filedownloader.model.FileDownloadStatus.blockComplete方法的典型用法代码示例。如果您正苦于以下问题:Java FileDownloadStatus.blockComplete方法的具体用法?Java FileDownloadStatus.blockComplete怎么用?Java FileDownloadStatus.blockComplete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.liulishuo.filedownloader.model.FileDownloadStatus的用法示例。


在下文中一共展示了FileDownloadStatus.blockComplete方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: process

import com.liulishuo.filedownloader.model.FileDownloadStatus; //导入方法依赖的package包/类
private void process(MessageSnapshot snapshot) {
    if (mTask == null) {
        if (FileDownloadLog.NEED_LOG) {
            // the most possible of occurring this case is the thread for flowing the paused
            // message is different with others.
            FileDownloadLog.d(this, "occur this case, it would be the host task of this " +
                            "messenger has been over(paused/warn/completed/error) on the " +
                            "other thread before receiving the snapshot(id[%d], status[%d])",
                    snapshot.getId(), snapshot.getStatus());
        }
        return;
    }

    if (mIsDiscard || mTask.getOrigin().getListener() == null) {
        if ((FileDownloadMonitor.isValid() || mTask.isContainFinishListener()) &&
                snapshot.getStatus() == FileDownloadStatus.blockComplete) {
            // there is a FileDownloadMonitor, so we have to ensure the 'BaseDownloadTask#over'
            // can be invoked.
            mLifeCycleCallback.onOver();
        }

        inspectAndHandleOverStatus(snapshot.getStatus());
    } else {
        parcelQueue.offer(snapshot);

        FileDownloadMessageStation.getImpl().requestEnqueue(this);
    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:29,代码来源:FileDownloadMessenger.java

示例2: getStatus

import com.liulishuo.filedownloader.model.FileDownloadStatus; //导入方法依赖的package包/类
@Override
public byte getStatus() {
    return FileDownloadStatus.blockComplete;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:BlockCompleteMessage.java

示例3: isBlockingCompleted

import com.liulishuo.filedownloader.model.FileDownloadStatus; //导入方法依赖的package包/类
@Override
public boolean isBlockingCompleted() {
    return parcelQueue.peek().getStatus() == FileDownloadStatus.blockComplete;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:FileDownloadMessenger.java


注:本文中的com.liulishuo.filedownloader.model.FileDownloadStatus.blockComplete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。