@InterfaceAudience.Public @InterfaceStability.Evolving public interface ControlledClusterFailoverBuilder
ControlledClusterFailoverBuilder
is used to configure and create instance of ServiceUrlProvider
.Modifier and Type | Method and Description |
---|---|
ServiceUrlProvider |
build()
Build the ServiceUrlProvider instance.
|
ControlledClusterFailoverBuilder |
checkInterval(long interval,
TimeUnit timeUnit)
Set the probe check interval.
|
ControlledClusterFailoverBuilder |
defaultServiceUrl(String serviceUrl)
Set default service url.
|
ControlledClusterFailoverBuilder |
urlProvider(String urlProvider)
Set the service url provider.
|
ControlledClusterFailoverBuilder |
urlProviderHeader(Map<String,String> header)
Set the service url provider header to authenticate provider service.
|
ControlledClusterFailoverBuilder defaultServiceUrl(String serviceUrl)
serviceUrl
- ControlledClusterFailoverBuilder urlProvider(String urlProvider)
urlProvider
- ControlledClusterFailoverBuilder urlProviderHeader(Map<String,String> header)
header
- ControlledClusterFailoverBuilder checkInterval(long interval, TimeUnit timeUnit)
interval
- timeUnit
- ServiceUrlProvider build() throws IOException
IOException
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.