@Internal public final class PulsarConfigBuilder extends Object
Configuration instance. Providing the common
validate logic for Pulsar source & sink.| Constructor and Description |
|---|
PulsarConfigBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<T extends PulsarConfiguration> |
build(PulsarConfigValidator validator,
java.util.function.Function<org.apache.flink.configuration.Configuration,T> constructor)
Validate the current config instance and return a unmodifiable configuration.
|
<T> boolean |
contains(org.apache.flink.configuration.ConfigOption<T> option)
Validate if the config has a existed option.
|
<T> T |
get(org.apache.flink.configuration.ConfigOption<T> key)
Get an option-related config value.
|
<T> void |
override(org.apache.flink.configuration.ConfigOption<T> option,
T value)
Override the option with the given value.
|
<T> void |
set(org.apache.flink.configuration.ConfigOption<T> option,
T value)
Add a config option with a not null value.
|
void |
set(org.apache.flink.configuration.Configuration config)
Fill in a set of configs which shouldn't be duplicated.
|
void |
set(Properties properties)
Fill in a set of config properties which shouldn't be duplicated.
|
public <T> boolean contains(org.apache.flink.configuration.ConfigOption<T> option)
public <T> T get(org.apache.flink.configuration.ConfigOption<T> key)
key - Config option instance.public <T> void set(org.apache.flink.configuration.ConfigOption<T> option,
T value)
option - Config option instance, contains key & type definition.value - The config value which shouldn't be null.public void set(org.apache.flink.configuration.Configuration config)
config - A set of configs.public void set(Properties properties)
properties - A config which could be string type.public <T> void override(org.apache.flink.configuration.ConfigOption<T> option,
T value)
set(ConfigOption, Object).public <T extends PulsarConfiguration> T build(PulsarConfigValidator validator, java.util.function.Function<org.apache.flink.configuration.Configuration,T> constructor)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.