Class GroupOffsetPartition

    • Constructor Detail

      • GroupOffsetPartition

        public GroupOffsetPartition()
      • GroupOffsetPartition

        public GroupOffsetPartition​(GroupOffsetPartition 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

      • getPartition

        public Long getPartition()
        Get topic 的 partitionId
        Returns:
        Partition topic 的 partitionId
      • setPartition

        public void setPartition​(Long Partition)
        Set topic 的 partitionId
        Parameters:
        Partition - topic 的 partitionId
      • getOffset

        public Long getOffset()
        Get consumer 提交的 offset 位置
        Returns:
        Offset consumer 提交的 offset 位置
      • setOffset

        public void setOffset​(Long Offset)
        Set consumer 提交的 offset 位置
        Parameters:
        Offset - consumer 提交的 offset 位置
      • getMetadata

        public String getMetadata()
        Get 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Metadata 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串 注意:此字段可能返回 null,表示取不到有效值。
      • setMetadata

        public void setMetadata​(String Metadata)
        Set 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Metadata - 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串 注意:此字段可能返回 null,表示取不到有效值。
      • getErrorCode

        public Long getErrorCode()
        Get 错误码
        Returns:
        ErrorCode 错误码
      • setErrorCode

        public void setErrorCode​(Long ErrorCode)
        Set 错误码
        Parameters:
        ErrorCode - 错误码
      • getLogEndOffset

        public Long getLogEndOffset()
        Get 当前 partition 最新的 offset
        Returns:
        LogEndOffset 当前 partition 最新的 offset
      • setLogEndOffset

        public void setLogEndOffset​(Long LogEndOffset)
        Set 当前 partition 最新的 offset
        Parameters:
        LogEndOffset - 当前 partition 最新的 offset
      • getLag

        public Long getLag()
        Get 未消费的消息个数
        Returns:
        Lag 未消费的消息个数
      • setLag

        public void setLag​(Long Lag)
        Set 未消费的消息个数
        Parameters:
        Lag - 未消费的消息个数