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 SummaryConstructorsConstructorDescriptionTopicConfig(String topicName) Creates new topic configuration for given topic name.
- 
Method SummaryModifier 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 ornullif it was not defined.Returns partitions initial offsets map.Returns the name of the topic.toString()
- 
Constructor Details- 
TopicConfigCreates new topic configuration for given topic name.
 
- 
- 
Method Details- 
getTopicNameReturns the name of the topic.
- 
getPartitionsInitialOffsetsReturns partitions initial offsets map.
- 
getPartitionInitialOffsetReturns the initial offset for given partition ornullif it was not defined.
- 
addPartitionInitialOffsetAdds the initial offset for given partition to the configuration.- Parameters:
- partition- the number of partition
- offset- the initial offset for the partition
 
- 
toString
 
-