Package org.apache.pulsar.client.impl
Class ControlledClusterFailover.ControlledClusterFailoverBuilderImpl
java.lang.Object
org.apache.pulsar.client.impl.ControlledClusterFailover.ControlledClusterFailoverBuilderImpl
- All Implemented Interfaces:
ControlledClusterFailoverBuilder
- Enclosing class:
- ControlledClusterFailover
public static class ControlledClusterFailover.ControlledClusterFailoverBuilderImpl
extends Object
implements ControlledClusterFailoverBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
static void
checkArgument
(boolean expression, @Nullable Object errorMessage) checkInterval
(long interval, @NonNull TimeUnit timeUnit) defaultServiceUrl
(@NonNull String serviceUrl) urlProvider
(@NonNull String urlProvider) urlProviderHeader
(Map<String, String> header)
-
Constructor Details
-
ControlledClusterFailoverBuilderImpl
public ControlledClusterFailoverBuilderImpl()
-
-
Method Details
-
defaultServiceUrl
- Specified by:
defaultServiceUrl
in interfaceControlledClusterFailoverBuilder
-
urlProvider
- Specified by:
urlProvider
in interfaceControlledClusterFailoverBuilder
-
urlProviderHeader
- Specified by:
urlProviderHeader
in interfaceControlledClusterFailoverBuilder
-
checkInterval
public ControlledClusterFailoverBuilder checkInterval(long interval, @NonNull @NonNull TimeUnit timeUnit) - Specified by:
checkInterval
in interfaceControlledClusterFailoverBuilder
-
build
- Specified by:
build
in interfaceControlledClusterFailoverBuilder
- Throws:
IOException
-
checkArgument
-