本文整理汇总了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);
}
}
示例2: getStatus
import com.liulishuo.filedownloader.model.FileDownloadStatus; //导入方法依赖的package包/类
@Override
public byte getStatus() {
return FileDownloadStatus.blockComplete;
}
示例3: isBlockingCompleted
import com.liulishuo.filedownloader.model.FileDownloadStatus; //导入方法依赖的package包/类
@Override
public boolean isBlockingCompleted() {
return parcelQueue.peek().getStatus() == FileDownloadStatus.blockComplete;
}