Package com.hazelcast.jet.kafka
Class TopicsConfig
java.lang.Object
com.hazelcast.jet.kafka.TopicsConfig
- All Implemented Interfaces:
Serializable
Contains the configuration for all Kafka topics that will be consumed by the
Kafka source processor.
- Since:
- 5.3
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Contains the configuration for a single Kafka topic. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates empty topic configuration and saves it in the map under the topic name.Adds the topic configuration.Creates new topic configurations for every provided topic from the list and saves them in the map.getInitialOffsetFor
(String topicName, int partition) Returns initial offset value for the given topic and partition combination.getTopicConfig
(String topicName) Returns the topic configuration for given topic.Returns the map of topic configurations, mapped by topic name.Returns the set of topic names from topic configurations.toString()
-
Constructor Details
-
TopicsConfig
public TopicsConfig()
-
-
Method Details
-
getTopicConfigs
Returns the map of topic configurations, mapped by topic name. -
getTopicNames
Returns the set of topic names from topic configurations. Returned set of topic names is guaranteed to preserve the order of insertion of topic configurations that were added viaaddTopicConfig(TopicConfig)
oraddTopic(String)
-
getTopicConfig
Returns the topic configuration for given topic. -
addTopicConfig
Adds the topic configuration. The configuration is saved under the topic name. -
addTopic
Creates empty topic configuration and saves it in the map under the topic name. -
addTopics
Creates new topic configurations for every provided topic from the list and saves them in the map. -
getInitialOffsetFor
Returns initial offset value for the given topic and partition combination. If configuration for specified topic does not exist, or if initial offset is not defined for the given partition thennull
is returned. -
toString
-