public class Config extends AbstractModel
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,表示取不到有效值。
|
Long |
getMaxMessageBytes()
Get 最大消息字节数
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getMinInsyncReplicas()
Get 最小同步复制数
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getRetention()
Get 消息保留时间
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getRetentionBytes()
Get 消息保留文件大小
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getSegmentBytes()
Get Segment 分片滚动的字节数
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getSegmentMs()
Get Segment 分片滚动的时长
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getUncleanLeaderElectionEnable()
Get 0表示 false。 1表示 true。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setCleanUpPolicy(String CleanUpPolicy)
Set 日志清理模式,默认 delete。
delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setMaxMessageBytes(Long MaxMessageBytes)
Set 最大消息字节数
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setMinInsyncReplicas(Long MinInsyncReplicas)
Set 最小同步复制数
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRetention(Long Retention)
Set 消息保留时间
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRetentionBytes(Long RetentionBytes)
Set 消息保留文件大小
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setSegmentBytes(Long SegmentBytes)
Set Segment 分片滚动的字节数
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setSegmentMs(Long SegmentMs)
Set Segment 分片滚动的时长
注意:此字段可能返回 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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Config()
public Config(Config source)
public Long getRetention()
public void setRetention(Long Retention)
Retention
- 消息保留时间
注意:此字段可能返回 null,表示取不到有效值。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 分片滚动的时长
注意:此字段可能返回 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 分片滚动的字节数
注意:此字段可能返回 null,表示取不到有效值。public Long getMaxMessageBytes()
public void setMaxMessageBytes(Long MaxMessageBytes)
MaxMessageBytes
- 最大消息字节数
注意:此字段可能返回 null,表示取不到有效值。public Long getRetentionBytes()
public void setRetentionBytes(Long RetentionBytes)
RetentionBytes
- 消息保留文件大小
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2022. All rights reserved.