public static class DownloadConfig.Builder extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
baseUrl |
private String |
cacheDir |
private de.flapdoodle.embed.process.config.store.IProxyFactory |
proxyFactory |
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
DownloadConfig |
build() |
DownloadConfig.Builder |
withBaseUrl(String baseUrl)
base url override that defaults to "https://dev.mysql.com/get/Downloads" where actual mysql binary path must conform to
what mysql provides (or otherwise is stored in ~/.embedmysql) - ex. https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.18-macos10.12-x86_64.dmg
|
DownloadConfig.Builder |
withCacheDir(String cacheDir)
Download cache location override that by default is set to '~/.embedmysql'.
|
DownloadConfig.Builder |
withDownloadCacheDir(String downloadCacheDir)
已过时。
in favor of withCacheDir
|
DownloadConfig.Builder |
withProxy(de.flapdoodle.embed.process.config.store.IProxyFactory proxy) |
private de.flapdoodle.embed.process.config.store.IProxyFactory proxyFactory
private String cacheDir
private String baseUrl
@Deprecated public DownloadConfig.Builder withDownloadCacheDir(String downloadCacheDir)
downloadCacheDir - custom pathpublic DownloadConfig.Builder withCacheDir(String cacheDir)
cacheDir - custom pathpublic DownloadConfig.Builder withBaseUrl(String baseUrl)
baseUrl - custom download urlpublic DownloadConfig.Builder withProxy(de.flapdoodle.embed.process.config.store.IProxyFactory proxy)
public DownloadConfig build()
Copyright © 2020. All rights reserved.