Package org.apache.pulsar.client.api
Interface ControlledClusterFailoverBuilder
ControlledClusterFailoverBuilder
is used to configure and create instance of ServiceUrlProvider
.- Since:
- 2.10.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the ServiceUrlProvider instance.checkInterval
(long interval, TimeUnit timeUnit) Set the probe check interval.defaultServiceUrl
(String serviceUrl) Set default service url.urlProvider
(String urlProvider) Set the service url provider.urlProviderHeader
(Map<String, String> header) Set the service url provider header to authenticate provider service.
-
Method Details
-
defaultServiceUrl
Set default service url.- Parameters:
serviceUrl
-- Returns:
-
urlProvider
Set the service url provider. ServiceUrlProvider will fetch serviceUrl from urlProvider periodically.- Parameters:
urlProvider
-- Returns:
-
urlProviderHeader
Set the service url provider header to authenticate provider service.- Parameters:
header
-- Returns:
-
checkInterval
Set the probe check interval.- Parameters:
interval
-timeUnit
-- Returns:
-
build
Build the ServiceUrlProvider instance.- Returns:
- Throws:
IOException
-