Class KafkaPropertyAdapter
- java.lang.Object
-
- org.linuxforhealth.fhir.server.index.kafka.KafkaPropertyAdapter
-
public class KafkaPropertyAdapter extends java.lang.Object
Wrapper around aProperties
making them easier to consume
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KafkaPropertyAdapter.Mode
-
Constructor Summary
Constructors Constructor Description KafkaPropertyAdapter(java.lang.String instanceIdentifier, java.lang.String topicName, java.util.Properties properties, KafkaPropertyAdapter.Mode mode)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getInstanceIdentifier()
KafkaPropertyAdapter.Mode
getMode()
java.lang.String
getTopicName()
void
putPropertiesTo(java.util.Properties kafkaProps)
Fill the given kafkaProperties object with the configuration properties held by this adapter
-
-
-
Constructor Detail
-
KafkaPropertyAdapter
public KafkaPropertyAdapter(java.lang.String instanceIdentifier, java.lang.String topicName, java.util.Properties properties, KafkaPropertyAdapter.Mode mode)
Public constructor- Parameters:
instanceIdentifier
-topicName
-properties
-mode
-
-
-
Method Detail
-
putPropertiesTo
public void putPropertiesTo(java.util.Properties kafkaProps)
Fill the given kafkaProperties object with the configuration properties held by this adapter- Parameters:
kafkaProps
-
-
getTopicName
public java.lang.String getTopicName()
- Returns:
- the topicName
-
getMode
public KafkaPropertyAdapter.Mode getMode()
- Returns:
- the mode
-
getInstanceIdentifier
public java.lang.String getInstanceIdentifier()
- Returns:
- the instanceIdentifier
-
-