Class TopicPartitionForIngestion


  • public class TopicPartitionForIngestion
    extends java.lang.Object
    This class is a wrapper of pair of . As for a unique topic partition to be ingested, We need both version topic and pub-sub topic partition to identify. For example, the server host may ingestion same {#linkPubSubTopicType.REALTIME_TOPIC} partition from different {#link PubSubTopicType.VERSION_TOPIC}s, and we should avoid sharing the same consumer for them. TODOļ¼š Modify the Consumer Service to use this class instead of using version topic and pub-sub topic partition separately.
    • Method Detail

      • getVersionTopic

        public PubSubTopic getVersionTopic()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public final boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object