Class TemplateVariableRegistry
java.lang.Object
io.aiven.commons.kafka.connector.common.templating.TemplateVariableRegistry
A registry of template variables.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for VariableTemplateRegistries. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TemplateVariableRegistryA registry of the standard variables used in a Sink connector. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder of TemplateVariableRegistries.Gets the template variable for the specified name.booleanDetermines if the name is in the registry.Returns a list of registered template variables.
-
Field Details
-
STANDARD_SINK
A registry of the standard variables used in a Sink connector.
-
-
Method Details
-
builder
Creates a new builder of TemplateVariableRegistries.- Returns:
- the new builder.
-
has
Determines if the name is in the registry.- Parameters:
name- the name to look for.- Returns:
trueif the name is in the registry.
-
listVariables
Returns a list of registered template variables.- Returns:
- a list of registered template variables.
-
get
Gets the template variable for the specified name.- Parameters:
name- the name to retrieve.- Returns:
- the TemplateVariable.
- Throws:
IllegalArgumentException- if the variable is not in the registry.
-