Class StaticTopicNameExtractor<K,​V>

    • Field Detail

      • topicName

        public final String topicName
    • Constructor Detail

      • StaticTopicNameExtractor

        public StaticTopicNameExtractor​(String topicName)
    • Method Detail

      • extract

        public String extract​(K key,
                              V value,
                              RecordContext recordContext)
        Description copied from interface: TopicNameExtractor
        Extracts the topic name to send to. The topic name must already exist, since the Kafka Streams library will not try to automatically create the topic with the extracted name.
        Specified by:
        extract in interface TopicNameExtractor<K,​V>
        Parameters:
        key - the record key
        value - the record value
        recordContext - current context metadata of the record
        Returns:
        the topic name this record should be sent to
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object