public interface Configurator extends Comparable<Configurator>
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
compareTo(Configurator o)
Sort by host, then by priority
1. the url with a specific host ip should have higher priority than 0.0.0.0
2. if two url has the same host, compare by priority value;
|
URL |
configure(URL url)
Configure the provider url.
|
URL |
getUrl()
Get the configurator url.
|
static Optional<List<Configurator>> |
toConfigurators(List<URL> urls)
Convert override urls to map for use when re-refer.
|
URL getUrl()
URL configure(URL url)
url - - old provider url.static Optional<List<Configurator>> toConfigurators(List<URL> urls)
urls - URL list to convertdefault int compareTo(Configurator o)
compareTo 在接口中 Comparable<Configurator>Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.