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 Log cleanup mode. 
 | 
Long | 
getMaxMessageBytes()
Get Maximum number of message bytes
Note: this field may return null, indicating that no valid values can be obtained. 
 | 
Long | 
getMinInsyncReplicas()
Get Minimum number of sync replications
Note: this field may return null, indicating that no valid values can be obtained. 
 | 
Long | 
getRetention()
Get Message retention period
Note: this field may return null, indicating that no valid values can be obtained. 
 | 
Long | 
getRetentionBytes()
Get Message retention file size. 
 | 
Long | 
getSegmentBytes()
Get Number of bytes for segment rolling
Note: this field may return null, indicating that no valid values can be obtained. 
 | 
Long | 
getSegmentMs()
Get Segment rolling duration
Note: this field may return null, indicating that no valid values can be obtained. 
 | 
Long | 
getUncleanLeaderElectionEnable()
Get 0: false, 1: true. 
 | 
void | 
setCleanUpPolicy(String CleanUpPolicy)
Set Log cleanup mode. 
 | 
void | 
setMaxMessageBytes(Long MaxMessageBytes)
Set Maximum number of message bytes
Note: this field may return null, indicating that no valid values can be obtained. 
 | 
void | 
setMinInsyncReplicas(Long MinInsyncReplicas)
Set Minimum number of sync replications
Note: this field may return null, indicating that no valid values can be obtained. 
 | 
void | 
setRetention(Long Retention)
Set Message retention period
Note: this field may return null, indicating that no valid values can be obtained. 
 | 
void | 
setRetentionBytes(Long RetentionBytes)
Set Message retention file size. 
 | 
void | 
setSegmentBytes(Long SegmentBytes)
Set Number of bytes for segment rolling
Note: this field may return null, indicating that no valid values can be obtained. 
 | 
void | 
setSegmentMs(Long SegmentMs)
Set Segment rolling duration
Note: this field may return null, indicating that no valid values can be obtained. 
 | 
void | 
setUncleanLeaderElectionEnable(Long UncleanLeaderElectionEnable)
Set 0: false, 1: true. 
 | 
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 - Message retention period
Note: this field may return null, indicating that no valid values can be obtained.public Long getMinInsyncReplicas()
public void setMinInsyncReplicas(Long MinInsyncReplicas)
MinInsyncReplicas - Minimum number of sync replications
Note: this field may return null, indicating that no valid values can be obtained.public String getCleanUpPolicy()
public void setCleanUpPolicy(String CleanUpPolicy)
CleanUpPolicy - Log cleanup mode. Default value: delete.
delete: logs will be deleted by save time; compact: logs will be compressed by key; compact, delete: logs will be compressed by key and deleted by save time.
Note: this field may return null, indicating that no valid values can be obtained.public Long getSegmentMs()
public void setSegmentMs(Long SegmentMs)
SegmentMs - Segment rolling duration
Note: this field may return null, indicating that no valid values can be obtained.public Long getUncleanLeaderElectionEnable()
public void setUncleanLeaderElectionEnable(Long UncleanLeaderElectionEnable)
UncleanLeaderElectionEnable - 0: false, 1: true.
Note: this field may return null, indicating that no valid values can be obtained.public Long getSegmentBytes()
public void setSegmentBytes(Long SegmentBytes)
SegmentBytes - Number of bytes for segment rolling
Note: this field may return null, indicating that no valid values can be obtained.public Long getMaxMessageBytes()
public void setMaxMessageBytes(Long MaxMessageBytes)
MaxMessageBytes - Maximum number of message bytes
Note: this field may return null, indicating that no valid values can be obtained.public Long getRetentionBytes()
public void setRetentionBytes(Long RetentionBytes)
RetentionBytes - Message retention file size.
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.