Package com.hazelcast.jet.kafka
Class TopicsConfig.TopicConfig
java.lang.Object
com.hazelcast.jet.kafka.TopicsConfig.TopicConfig
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TopicsConfig
Contains the configuration for a single Kafka topic.
- See Also:
-
Constructor Summary
ConstructorDescriptionTopicConfig
(String topicName) Creates new topic configuration for given topic name. -
Method Summary
Modifier and TypeMethodDescriptionaddPartitionInitialOffset
(int partition, long offset) Adds the initial offset for given partition to the configuration.getPartitionInitialOffset
(int partition) Returns the initial offset for given partition ornull
if it was not defined.Returns partitions initial offsets map.Returns the name of the topic.toString()
-
Constructor Details
-
TopicConfig
Creates new topic configuration for given topic name.
-
-
Method Details
-
getTopicName
Returns the name of the topic. -
getPartitionsInitialOffsets
Returns partitions initial offsets map. -
getPartitionInitialOffset
Returns the initial offset for given partition ornull
if it was not defined. -
addPartitionInitialOffset
Adds the initial offset for given partition to the configuration.- Parameters:
partition
- the number of partitionoffset
- the initial offset for the partition
-
toString
-