public class Config extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| Config() | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getCleanUpPolicy()Get 日志清理模式,默认 delete。
delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getLogMsgTimestampType()Get 消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。
注意:此字段可能返回 null,表示取不到有效值。 | 
| Long | getMaxMessageBytes()Get 最大消息字节数,单位bytes
注意:此字段可能返回 null,表示取不到有效值。 | 
| Long | getMinInsyncReplicas()Get 最小同步复制数
注意:此字段可能返回 null,表示取不到有效值。 | 
| Long | getRetention()Get 消息保留时间,单位ms。 | 
| Long | getRetentionBytes()Get 消息保留文件大小,单位Bytes
注意:此字段可能返回 null,表示取不到有效值。 | 
| Long | getSegmentBytes()Get Segment 分片滚动的字节数,单位bytes
注意:此字段可能返回 null,表示取不到有效值。 | 
| Long | getSegmentMs()Get Segment 分片滚动的时长,单位ms。
注意:此字段可能返回 null,表示取不到有效值。 | 
| Long | getUncleanLeaderElectionEnable()Get 0表示 false。 1表示 true。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setCleanUpPolicy(String CleanUpPolicy)Set 日志清理模式,默认 delete。
delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setLogMsgTimestampType(String LogMsgTimestampType)Set 消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setMaxMessageBytes(Long MaxMessageBytes)Set 最大消息字节数,单位bytes
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setMinInsyncReplicas(Long MinInsyncReplicas)Set 最小同步复制数
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setRetention(Long Retention)Set 消息保留时间,单位ms。 | 
| void | setRetentionBytes(Long RetentionBytes)Set 消息保留文件大小,单位Bytes
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setSegmentBytes(Long SegmentBytes)Set Segment 分片滚动的字节数,单位bytes
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setSegmentMs(Long SegmentMs)Set Segment 分片滚动的时长,单位ms。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setUncleanLeaderElectionEnable(Long UncleanLeaderElectionEnable)Set 0表示 false。 1表示 true。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Config()
public Config(Config source)
public Long getRetention()
public void setRetention(Long Retention)
Retention - 消息保留时间,单位ms。public Long getMinInsyncReplicas()
public void setMinInsyncReplicas(Long MinInsyncReplicas)
MinInsyncReplicas - 最小同步复制数
注意:此字段可能返回 null,表示取不到有效值。public String getCleanUpPolicy()
public void setCleanUpPolicy(String CleanUpPolicy)
CleanUpPolicy - 日志清理模式,默认 delete。
delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。
注意:此字段可能返回 null,表示取不到有效值。public Long getSegmentMs()
public void setSegmentMs(Long SegmentMs)
SegmentMs - Segment 分片滚动的时长,单位ms。
注意:此字段可能返回 null,表示取不到有效值。public Long getUncleanLeaderElectionEnable()
public void setUncleanLeaderElectionEnable(Long UncleanLeaderElectionEnable)
UncleanLeaderElectionEnable - 0表示 false。 1表示 true。
注意:此字段可能返回 null,表示取不到有效值。public Long getSegmentBytes()
public void setSegmentBytes(Long SegmentBytes)
SegmentBytes - Segment 分片滚动的字节数,单位bytes
注意:此字段可能返回 null,表示取不到有效值。public Long getMaxMessageBytes()
public void setMaxMessageBytes(Long MaxMessageBytes)
MaxMessageBytes - 最大消息字节数,单位bytes
注意:此字段可能返回 null,表示取不到有效值。public Long getRetentionBytes()
public void setRetentionBytes(Long RetentionBytes)
RetentionBytes - 消息保留文件大小,单位Bytes
注意:此字段可能返回 null,表示取不到有效值。public String getLogMsgTimestampType()
public void setLogMsgTimestampType(String LogMsgTimestampType)
LogMsgTimestampType - 消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.