Package io.debezium.config
Interface Configuration.ConfigBuilder<C extends Configuration,B extends Configuration.ConfigBuilder<C,B>>
- Type Parameters:
C- the type of configurationB- the type of builder
- All Known Subinterfaces:
JdbcConfiguration.Builder
- All Known Implementing Classes:
Configuration.Builder
- Enclosing interface:
- Configuration
public static interface Configuration.ConfigBuilder<C extends Configuration,B extends Configuration.ConfigBuilder<C,B>>
The basic interface for configuration builders.
-
Method Summary
Modifier and TypeMethodDescriptionApply the function to this builder.build()Build and return the immutable configuration.default BchangeBoolean(Field field, Function<Boolean, Boolean> function) Apply the function to this builder to change a potentially existing boolean field.default BchangeBoolean(String key, Function<Boolean, Boolean> function) Apply the function to this builder to change a potentially existing boolean field.default BchangeDouble(Field field, Function<Double, Double> function) Apply the function to this builder to change a potentially existing double field.default BchangeDouble(String key, Function<Double, Double> function) Apply the function to this builder to change a potentially existing double field.default BchangeFloat(Field field, Function<Float, Float> function) Apply the function to this builder to change a potentially existing float field.default BchangeFloat(String key, Function<Float, Float> function) Apply the function to this builder to change a potentially existing float field.default BchangeInteger(Field field, Function<Integer, Integer> function) Apply the function to this builder to change a potentially existing integer field.default BchangeInteger(String key, Function<Integer, Integer> function) Apply the function to this builder to change a potentially existing integer field.default BchangeLong(Field field, Function<Long, Long> function) Apply the function to this builder to change a potentially existing long field.default BchangeLong(String key, Function<Long, Long> function) Apply the function to this builder to change a potentially existing long field.changeString(Field field, Function<String, String> function) Apply the function to this builder to change a potentially existing string field.changeString(String key, Function<String, String> function) Apply the function to this builder to change a potentially existing string field.default Bwith(Configuration other) Add all of the fields in the supplied Configuration object.default BAssociate the given value with the key of the specified field.default BAssociate the given value with the key of the specified field.default BAssociate the given value with the key of the specified field.default BAssociate the given value with the key of the specified field.default BAssociate the given value with the key of the specified field.default Bwith(Field field, EnumeratedValue value) Associate the given value with the key of the specified field.default BAssociate the given class name value with the specified field.default BAssociate the given value with the key of the specified field.default BAssociate the given value with the key of the specified field.default BAssociate the given value with the specified key.default BAssociate the given value with the specified key.default BAssociate the given value with the specified key.default BAssociate the given value with the specified key.default BAssociate the given value with the specified key.default Bwith(String key, EnumeratedValue value) Associate the given value with the specified key.default BAssociate the given class name value with the specified key.default BAssociate the given value with the specified key.Associate the given value with the specified key.default BwithDefault(Configuration other) If any of the fields in the supplied Configuration object do not exist, then add them.default BwithDefault(Field field, boolean value) If the field does not have a value, then associate the given value with the key of the specified field.default BwithDefault(Field field, double value) If the field does not have a value, then associate the given value with the key of the specified field.default BwithDefault(Field field, float value) If the field does not have a value, then associate the given value with the key of the specified field.default BwithDefault(Field field, int value) If the field does not have a value, then associate the given value with the key of the specified field.default BwithDefault(Field field, long value) If the field does not have a value, then associate the given value with the key of the specified field.default BwithDefault(Field field, Class<?> value) If the field does not have a value, then associate the given value with the key of the specified field.default BwithDefault(Field field, Object value) If the field does not have a value, then associate the given value with the key of the specified field.default BwithDefault(Field field, String value) If the field does not have a value, then associate the given value with the key of the specified field.default BwithDefault(String key, boolean value) If there is no field with the specified key, then associate the given value with the specified key.default BwithDefault(String key, double value) If there is no field with the specified key, then associate the given value with the specified key.default BwithDefault(String key, float value) If there is no field with the specified key, then associate the given value with the specified key.default BwithDefault(String key, int value) If there is no field with the specified key, then associate the given value with the specified key.default BwithDefault(String key, long value) If there is no field with the specified key, then associate the given value with the specified key.default BwithDefault(String key, EnumeratedValue value) If there is no field with the specified key, then associate the given value with the specified key.default BwithDefault(String key, Class<?> value) If there is no field with the specified key, then associate the given class name value with the specified key.default BwithDefault(String key, Object value) If there is no field with the specified key, then associate the given value with the specified key.withDefault(String key, String value) If there is no field with the specified key, then associate the given value with the specified key.
-
Method Details
-
with
Associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given class name value with the specified key.- Parameters:
key- the keyvalue- the Class value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If there is no field with the specified key, then associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If there is no field with the specified key, then associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If there is no field with the specified key, then associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If there is no field with the specified key, then associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If there is no field with the specified key, then associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If there is no field with the specified key, then associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If there is no field with the specified key, then associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If there is no field with the specified key, then associate the given value with the specified key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If there is no field with the specified key, then associate the given class name value with the specified key.- Parameters:
key- the keyvalue- the Class value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If any of the fields in the supplied Configuration object do not exist, then add them.- Parameters:
other- the configuration whose fields should be added; may not be null- Returns:
- this builder object so methods can be chained together; never null
-
with
Add all of the fields in the supplied Configuration object.- Parameters:
other- the configuration whose fields should be added; may not be null- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
with
Associate the given class name value with the specified field.- Parameters:
field- the predefined field for the keyvalue- the Class value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If the field does not have a value, then associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If the field does not have a value, then associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If the field does not have a value, then associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If the field does not have a value, then associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If the field does not have a value, then associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If the field does not have a value, then associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If the field does not have a value, then associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the default value- Returns:
- this builder object so methods can be chained together; never null
-
withDefault
If the field does not have a value, then associate the given value with the key of the specified field.- Parameters:
field- the predefined field for the keyvalue- the default value- Returns:
- this builder object so methods can be chained together; never null
-
apply
Apply the function to this builder.- Parameters:
function- the predefined field for the key- Returns:
- this builder object so methods can be chained together; never null
-
changeBoolean
Apply the function to this builder to change a potentially existing boolean field.- Parameters:
key- the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
- Throws:
NumberFormatException- if the existing value is not a boolean
-
changeString
Apply the function to this builder to change a potentially existing string field.- Parameters:
key- the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
-
changeDouble
Apply the function to this builder to change a potentially existing double field.- Parameters:
key- the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
- Throws:
NumberFormatException- if the existing value is not a double
-
changeFloat
Apply the function to this builder to change a potentially existing float field.- Parameters:
key- the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
- Throws:
NumberFormatException- if the existing value is not a float
-
changeLong
Apply the function to this builder to change a potentially existing long field.- Parameters:
key- the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
- Throws:
NumberFormatException- if the existing value is not a long
-
changeInteger
Apply the function to this builder to change a potentially existing integer field.- Parameters:
key- the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
- Throws:
NumberFormatException- if the existing value is not an integer
-
changeBoolean
Apply the function to this builder to change a potentially existing boolean field.- Parameters:
field- the predefined field for the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
-
changeString
Apply the function to this builder to change a potentially existing string field.- Parameters:
field- the predefined field for the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
-
changeDouble
Apply the function to this builder to change a potentially existing double field.- Parameters:
field- the predefined field for the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
-
changeFloat
Apply the function to this builder to change a potentially existing float field.- Parameters:
field- the predefined field for the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
-
changeLong
Apply the function to this builder to change a potentially existing long field.- Parameters:
field- the predefined field for the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
-
changeInteger
Apply the function to this builder to change a potentially existing integer field.- Parameters:
field- the predefined field for the keyfunction- the function that computes the new value given a possibly-existing value; may not be null- Returns:
- this builder object so methods can be chained together; never null
-
build
C build()Build and return the immutable configuration.- Returns:
- the immutable configuration; never null
-