public class BatchModifyTopicInfo extends AbstractModel
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
|
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维度的消息保留大小,范围1 MB到1024 GB
|
Long |
getRetentionMs()
Get topic维度的消息保留时间(毫秒)范围1 分钟到90 天
|
Long |
getSegmentMs()
Get Segment分片滚动的时长(毫秒),范围1 到90 天
|
String |
getTopicName()
Get topic名称
|
Boolean |
getUncleanLeaderElectionEnable()
Get 是否允许非ISR的副本成为Leader
|
void |
setCleanUpPolicy(String CleanUpPolicy)
Set 消息删除策略,可以选择delete 或者compact
|
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维度的消息保留大小,范围1 MB到1024 GB
|
void |
setRetentionMs(Long RetentionMs)
Set topic维度的消息保留时间(毫秒)范围1 分钟到90 天
|
void |
setSegmentMs(Long SegmentMs)
Set Segment分片滚动的时长(毫秒),范围1 到90 天
|
void |
setTopicName(String TopicName)
Set topic名称
|
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public BatchModifyTopicInfo()
public BatchModifyTopicInfo(BatchModifyTopicInfo source)
public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- topic名称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维度的消息保留大小,范围1 MB到1024 GBpublic Long getSegmentMs()
public void setSegmentMs(Long SegmentMs)
SegmentMs
- Segment分片滚动的时长(毫秒),范围1 到90 天public Long getMaxMessageBytes()
public void setMaxMessageBytes(Long MaxMessageBytes)
MaxMessageBytes
- 批次的消息大小,范围1 KB到12 MBCopyright © 2022. All rights reserved.