Package io.openlineage.client.transports
Class KafkaConfig
- java.lang.Object
-
- io.openlineage.client.transports.KafkaConfig
-
- All Implemented Interfaces:
MergeConfig<KafkaConfig>
,TransportConfig
public final class KafkaConfig extends java.lang.Object implements TransportConfig, MergeConfig<KafkaConfig>
-
-
Constructor Summary
Constructors Constructor Description KafkaConfig(java.lang.String topicName, java.lang.String messageKey, java.util.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessageKey()
java.util.Properties
getProperties()
java.lang.String
getTopicName()
KafkaConfig
mergeWithNonNull(KafkaConfig other)
Method to create new config class based on current instance and non-null argument value.void
setMessageKey(java.lang.String messageKey)
void
setProperties(java.util.Properties properties)
void
setTopicName(java.lang.String topicName)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.openlineage.client.MergeConfig
mergePropertyWith, mergePropertyWith, mergeWith, mergeWithDefaultValue
-
-
-
-
Method Detail
-
mergeWithNonNull
public KafkaConfig mergeWithNonNull(KafkaConfig other)
Description copied from interface:MergeConfig
Method to create new config class based on current instance and non-null argument value. In most cases, implementation needs to create a new instance of T, while merging all the properties.- Specified by:
mergeWithNonNull
in interfaceMergeConfig<KafkaConfig>
- Parameters:
other
- overwrite value- Returns:
- merged config entry
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getTopicName
public java.lang.String getTopicName()
-
setTopicName
public void setTopicName(java.lang.String topicName)
-
getMessageKey
public java.lang.String getMessageKey()
-
setMessageKey
public void setMessageKey(java.lang.String messageKey)
-
getProperties
public java.util.Properties getProperties()
-
setProperties
public void setProperties(java.util.Properties properties)
-
-