public class BatchModifyTopicInfo extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| BatchModifyTopicInfo() | 
| BatchModifyTopicInfo(BatchModifyTopicInfo 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 或者compact | 
| String | getLogMsgTimestampType()Get 消息保存的时间类型:CreateTime/LogAppendTime | 
| Long | getMaxMessageBytes()Get 批次的消息大小,范围1 KB到12 MB | 
| Long | getMinInsyncReplicas()Get 当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目 | 
| String | getNote()Get 备注 | 
| Long | getPartitionNum()Get 分区数 | 
| Long | getReplicaNum()Get 副本数 | 
| Long | getRetentionBytes()Get topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。 | 
| Long | getRetentionMs()Get topic维度的消息保留时间(毫秒)范围1 分钟到90 天 | 
| Long | getSegmentMs()Get Segment分片滚动的时长(毫秒),范围1 天到90 天 | 
| String | getTopicName()Get 主题名 | 
| Boolean | getUncleanLeaderElectionEnable()Get 是否允许非ISR的副本成为Leader | 
| void | setCleanUpPolicy(String CleanUpPolicy)Set 消息删除策略,可以选择delete 或者compact | 
| void | setLogMsgTimestampType(String LogMsgTimestampType)Set 消息保存的时间类型:CreateTime/LogAppendTime | 
| void | setMaxMessageBytes(Long MaxMessageBytes)Set 批次的消息大小,范围1 KB到12 MB | 
| void | setMinInsyncReplicas(Long MinInsyncReplicas)Set 当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目 | 
| void | setNote(String Note)Set 备注 | 
| void | setPartitionNum(Long PartitionNum)Set 分区数 | 
| void | setReplicaNum(Long ReplicaNum)Set 副本数 | 
| void | setRetentionBytes(Long RetentionBytes)Set topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。 | 
| void | setRetentionMs(Long RetentionMs)Set topic维度的消息保留时间(毫秒)范围1 分钟到90 天 | 
| void | setSegmentMs(Long SegmentMs)Set Segment分片滚动的时长(毫秒),范围1 天到90 天 | 
| void | setTopicName(String TopicName)Set 主题名 | 
| void | setUncleanLeaderElectionEnable(Boolean UncleanLeaderElectionEnable)Set 是否允许非ISR的副本成为Leader | 
| 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 BatchModifyTopicInfo()
public BatchModifyTopicInfo(BatchModifyTopicInfo source)
public String getTopicName()
public void setTopicName(String TopicName)
TopicName - 主题名public Long getPartitionNum()
public void setPartitionNum(Long PartitionNum)
PartitionNum - 分区数public String getNote()
public void setNote(String Note)
Note - 备注public Long getReplicaNum()
public void setReplicaNum(Long ReplicaNum)
ReplicaNum - 副本数public String getCleanUpPolicy()
public void setCleanUpPolicy(String CleanUpPolicy)
CleanUpPolicy - 消息删除策略,可以选择delete 或者compactpublic Long getMinInsyncReplicas()
public void setMinInsyncReplicas(Long MinInsyncReplicas)
MinInsyncReplicas - 当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目public Boolean getUncleanLeaderElectionEnable()
public void setUncleanLeaderElectionEnable(Boolean UncleanLeaderElectionEnable)
UncleanLeaderElectionEnable - 是否允许非ISR的副本成为Leaderpublic Long getRetentionMs()
public void setRetentionMs(Long RetentionMs)
RetentionMs - topic维度的消息保留时间(毫秒)范围1 分钟到90 天public Long getRetentionBytes()
public void setRetentionBytes(Long RetentionBytes)
RetentionBytes - topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。public Long getSegmentMs()
public void setSegmentMs(Long SegmentMs)
SegmentMs - Segment分片滚动的时长(毫秒),范围1 天到90 天public Long getMaxMessageBytes()
public void setMaxMessageBytes(Long MaxMessageBytes)
MaxMessageBytes - 批次的消息大小,范围1 KB到12 MBpublic String getLogMsgTimestampType()
public void setLogMsgTimestampType(String LogMsgTimestampType)
LogMsgTimestampType - 消息保存的时间类型:CreateTime/LogAppendTimeCopyright © 2025. All rights reserved.