本文整理汇总了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();
}
}
示例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();
}
}
示例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;
}
示例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;
}
示例5: createDefaultConnectionCountAdapter
import com.liulishuo.filedownloader.util.FileDownloadHelper; //导入方法依赖的package包/类
private FileDownloadHelper.ConnectionCountAdapter createDefaultConnectionCountAdapter() {
return new DefaultConnectionCountAdapter();
}
示例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;
}
示例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;
}