Class ConsumerRecord

    • Constructor Detail

      • ConsumerRecord

        public ConsumerRecord()
      • ConsumerRecord

        public ConsumerRecord​(ConsumerRecord source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getTopic

        public String getTopic()
        Get 主题名
        Returns:
        Topic 主题名
      • setTopic

        public void setTopic​(String Topic)
        Set 主题名
        Parameters:
        Topic - 主题名
      • getPartition

        public Long getPartition()
        Get 分区id
        Returns:
        Partition 分区id
      • setPartition

        public void setPartition​(Long Partition)
        Set 分区id
        Parameters:
        Partition - 分区id
      • getOffset

        public Long getOffset()
        Get 位点
        Returns:
        Offset 位点
      • setOffset

        public void setOffset​(Long Offset)
        Set 位点
        Parameters:
        Offset - 位点
      • getKey

        public String getKey()
        Get 消息key 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Key 消息key 注意:此字段可能返回 null,表示取不到有效值。
      • setKey

        public void setKey​(String Key)
        Set 消息key 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Key - 消息key 注意:此字段可能返回 null,表示取不到有效值。
      • getValue

        public String getValue()
        Get 消息value 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Value 消息value 注意:此字段可能返回 null,表示取不到有效值。
      • setValue

        public void setValue​(String Value)
        Set 消息value 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Value - 消息value 注意:此字段可能返回 null,表示取不到有效值。
      • getTimestamp

        public Long getTimestamp()
        Get 消息时间戳 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Timestamp 消息时间戳 注意:此字段可能返回 null,表示取不到有效值。
      • setTimestamp

        public void setTimestamp​(Long Timestamp)
        Set 消息时间戳 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Timestamp - 消息时间戳 注意:此字段可能返回 null,表示取不到有效值。
      • getHeaders

        public String getHeaders()
        Get 消息headers 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Headers 消息headers 注意:此字段可能返回 null,表示取不到有效值。
      • setHeaders

        public void setHeaders​(String Headers)
        Set 消息headers 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Headers - 消息headers 注意:此字段可能返回 null,表示取不到有效值。