primary
Set the primary service url.
- 参数:
primary
-- 返回:
AutoClusterFailoverBuilder
is used to configure and create instance of ServiceUrlProvider
.build()
checkInterval(long interval,
TimeUnit timeUnit)
failoverDelay(long failoverDelay,
TimeUnit timeUnit)
secondaryAuthentication(Map<String,Authentication> authentication)
secondaryTlsTrustCertsFilePath(Map<String,String> tlsTrustCertsFilePath)
secondaryTlsTrustStorePassword(Map<String,String> tlsTrustStorePassword)
secondaryTlsTrustStorePath(Map<String,String> tlsTrustStorePath)
switchBackDelay(long switchBackDelay,
TimeUnit timeUnit)
primary
- secondary
- policy
- authentication
- tlsTrustCertsFilePath
- tlsTrustStorePath
- tlsTrustStorePassword
- failoverDelay
- timeUnit
- switchBackDelay
- timeUnit
- interval
- timeUnit
-