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


Java FileDownloadHelper.ConnectionCountAdapter方法代码示例

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


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

示例1: createConnectionCountAdapter

import com.liulishuo.filedownloader.util.FileDownloadHelper; //导入方法依赖的package包/类
public FileDownloadHelper.ConnectionCountAdapter createConnectionCountAdapter() {
    if (mMaker == null) {
        return createDefaultConnectionCountAdapter();
    }

    final FileDownloadHelper.ConnectionCountAdapter adapter = mMaker.mConnectionCountAdapter;
    if (adapter != null) {
        if (FileDownloadLog.NEED_LOG) {
            FileDownloadLog.d(this, "initial FileDownloader manager with the customize " +
                    "connection count adapter: %s", adapter);
        }
        return adapter;
    } else {
        return createDefaultConnectionCountAdapter();
    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:17,代码来源:DownloadMgrInitialParams.java

示例2: createConnectionCountAdapter

import com.liulishuo.filedownloader.util.FileDownloadHelper; //导入方法依赖的package包/类
public FileDownloadHelper.ConnectionCountAdapter createConnectionCountAdapter() {
    if (mMaker == null) {
        return createDefaultConnectionCountAdapter();
    }

    final FileDownloadHelper.ConnectionCountAdapter adapter = mMaker.mConnectionCountAdapter;
    if (adapter != null) {
        if (FileDownloadLog.NEED_LOG) {
            FileDownloadLog.d(this, "initial FileDownloader manager with the customize "
                    + "connection count adapter: %s", adapter);
        }
        return adapter;
    } else {
        return createDefaultConnectionCountAdapter();
    }
}
 
开发者ID:lingochamp,项目名称:FileDownloader,代码行数:17,代码来源:DownloadMgrInitialParams.java

示例3: getConnectionCountAdapter

import com.liulishuo.filedownloader.util.FileDownloadHelper; //导入方法依赖的package包/类
private FileDownloadHelper.ConnectionCountAdapter getConnectionCountAdapter() {
    if (connectionCountAdapter != null) return connectionCountAdapter;

    synchronized (this) {
        if (connectionCountAdapter == null)
            connectionCountAdapter = getDownloadMgrInitialParams().createConnectionCountAdapter();
    }

    return connectionCountAdapter;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:CustomComponentHolder.java

示例4: getConnectionCountAdapter

import com.liulishuo.filedownloader.util.FileDownloadHelper; //导入方法依赖的package包/类
private FileDownloadHelper.ConnectionCountAdapter getConnectionCountAdapter() {
    if (connectionCountAdapter != null) return connectionCountAdapter;

    synchronized (this) {
        if (connectionCountAdapter == null) {
            connectionCountAdapter = getDownloadMgrInitialParams()
                    .createConnectionCountAdapter();
        }
    }

    return connectionCountAdapter;
}
 
开发者ID:lingochamp,项目名称:FileDownloader,代码行数:13,代码来源:CustomComponentHolder.java

示例5: createDefaultConnectionCountAdapter

import com.liulishuo.filedownloader.util.FileDownloadHelper; //导入方法依赖的package包/类
private FileDownloadHelper.ConnectionCountAdapter createDefaultConnectionCountAdapter() {
    return new DefaultConnectionCountAdapter();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:DownloadMgrInitialParams.java

示例6: connectionCountAdapter

import com.liulishuo.filedownloader.util.FileDownloadHelper; //导入方法依赖的package包/类
/**
 * customize the connection count adapter.
 *
 * @param adapter the adapter used for determine how many connection will be used to
 *                downloading the target task.
 * @return the connection count adapter.
 */
public InitCustomMaker connectionCountAdapter(FileDownloadHelper.ConnectionCountAdapter adapter) {
    this.mConnectionCountAdapter = adapter;
    return this;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:12,代码来源:DownloadMgrInitialParams.java

示例7: connectionCountAdapter

import com.liulishuo.filedownloader.util.FileDownloadHelper; //导入方法依赖的package包/类
/**
 * customize the connection count adapter.
 *
 * @param adapter the adapter used for determine how many connection will be used to
 *                downloading the target task.
 * @return the connection count adapter.
 */
public InitCustomMaker connectionCountAdapter(
        FileDownloadHelper.ConnectionCountAdapter adapter) {
    this.mConnectionCountAdapter = adapter;
    return this;
}
 
开发者ID:lingochamp,项目名称:FileDownloader,代码行数:13,代码来源:DownloadMgrInitialParams.java


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