Class Config

    • Constructor Detail

      • Config

        public Config()
      • Config

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

      • getRetention

        public Long getRetention()
        Get 消息保留时间 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Retention 消息保留时间 注意:此字段可能返回 null,表示取不到有效值。
      • setRetention

        public void setRetention​(Long Retention)
        Set 消息保留时间 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Retention - 消息保留时间 注意:此字段可能返回 null,表示取不到有效值。
      • getMinInsyncReplicas

        public Long getMinInsyncReplicas()
        Get 最小同步复制数 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        MinInsyncReplicas 最小同步复制数 注意:此字段可能返回 null,表示取不到有效值。
      • setMinInsyncReplicas

        public void setMinInsyncReplicas​(Long MinInsyncReplicas)
        Set 最小同步复制数 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        MinInsyncReplicas - 最小同步复制数 注意:此字段可能返回 null,表示取不到有效值。
      • getCleanUpPolicy

        public String getCleanUpPolicy()
        Get 日志清理模式,默认 delete。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        CleanUpPolicy 日志清理模式,默认 delete。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。
      • setCleanUpPolicy

        public void setCleanUpPolicy​(String CleanUpPolicy)
        Set 日志清理模式,默认 delete。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        CleanUpPolicy - 日志清理模式,默认 delete。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。
      • getSegmentMs

        public Long getSegmentMs()
        Get Segment 分片滚动的时长 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        SegmentMs Segment 分片滚动的时长 注意:此字段可能返回 null,表示取不到有效值。
      • setSegmentMs

        public void setSegmentMs​(Long SegmentMs)
        Set Segment 分片滚动的时长 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        SegmentMs - Segment 分片滚动的时长 注意:此字段可能返回 null,表示取不到有效值。
      • getUncleanLeaderElectionEnable

        public Long getUncleanLeaderElectionEnable()
        Get 0表示 false。 1表示 true。 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        UncleanLeaderElectionEnable 0表示 false。 1表示 true。 注意:此字段可能返回 null,表示取不到有效值。
      • setUncleanLeaderElectionEnable

        public void setUncleanLeaderElectionEnable​(Long UncleanLeaderElectionEnable)
        Set 0表示 false。 1表示 true。 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        UncleanLeaderElectionEnable - 0表示 false。 1表示 true。 注意:此字段可能返回 null,表示取不到有效值。
      • getSegmentBytes

        public Long getSegmentBytes()
        Get Segment 分片滚动的字节数 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        SegmentBytes Segment 分片滚动的字节数 注意:此字段可能返回 null,表示取不到有效值。
      • setSegmentBytes

        public void setSegmentBytes​(Long SegmentBytes)
        Set Segment 分片滚动的字节数 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        SegmentBytes - Segment 分片滚动的字节数 注意:此字段可能返回 null,表示取不到有效值。
      • getMaxMessageBytes

        public Long getMaxMessageBytes()
        Get 最大消息字节数 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        MaxMessageBytes 最大消息字节数 注意:此字段可能返回 null,表示取不到有效值。
      • setMaxMessageBytes

        public void setMaxMessageBytes​(Long MaxMessageBytes)
        Set 最大消息字节数 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        MaxMessageBytes - 最大消息字节数 注意:此字段可能返回 null,表示取不到有效值。
      • getRetentionBytes

        public Long getRetentionBytes()
        Get 消息保留文件大小 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        RetentionBytes 消息保留文件大小 注意:此字段可能返回 null,表示取不到有效值。
      • setRetentionBytes

        public void setRetentionBytes​(Long RetentionBytes)
        Set 消息保留文件大小 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        RetentionBytes - 消息保留文件大小 注意:此字段可能返回 null,表示取不到有效值。