public class CreateTopicRequest extends AbstractModel
Constructor and Description |
---|
CreateTopicRequest() |
CreateTopicRequest(CreateTopicRequest 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 |
getClusterId()
Get Pulsar 集群的ID
|
String |
getEnvironmentId()
Get 环境(命名空间)名称。
|
Long |
getPartitions()
Get 0:非分区topic,无分区;非0:具体分区topic的分区数,最大不允许超过128。
|
Long |
getPulsarTopicType()
Get Pulsar 主题类型
0: 非持久非分区
1: 非持久分区
2: 持久非分区
3: 持久分区
|
String |
getRemark()
Get 备注,128字符以内。
|
String |
getTopicName()
Get 主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。
|
Long |
getTopicType()
Get 0: 普通消息;
1 :全局顺序消息;
2 :局部顺序消息;
3 :重试队列;
4 :死信队列。
|
void |
setClusterId(String ClusterId)
Set Pulsar 集群的ID
|
void |
setEnvironmentId(String EnvironmentId)
Set 环境(命名空间)名称。
|
void |
setPartitions(Long Partitions)
Set 0:非分区topic,无分区;非0:具体分区topic的分区数,最大不允许超过128。
|
void |
setPulsarTopicType(Long PulsarTopicType)
Set Pulsar 主题类型
0: 非持久非分区
1: 非持久分区
2: 持久非分区
3: 持久分区
|
void |
setRemark(String Remark)
Set 备注,128字符以内。
|
void |
setTopicName(String TopicName)
Set 主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。
|
void |
setTopicType(Long TopicType)
Set 0: 普通消息;
1 :全局顺序消息;
2 :局部顺序消息;
3 :重试队列;
4 :死信队列。
|
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 CreateTopicRequest()
public CreateTopicRequest(CreateTopicRequest source)
public String getEnvironmentId()
public void setEnvironmentId(String EnvironmentId)
EnvironmentId
- 环境(命名空间)名称。public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- 主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。public Long getPartitions()
public void setPartitions(Long Partitions)
Partitions
- 0:非分区topic,无分区;非0:具体分区topic的分区数,最大不允许超过128。public String getRemark()
public void setRemark(String Remark)
Remark
- 备注,128字符以内。public Long getTopicType()
public void setTopicType(Long TopicType)
TopicType
- 0: 普通消息;
1 :全局顺序消息;
2 :局部顺序消息;
3 :重试队列;
4 :死信队列。public String getClusterId()
public void setClusterId(String ClusterId)
ClusterId
- Pulsar 集群的IDpublic Long getPulsarTopicType()
public void setPulsarTopicType(Long PulsarTopicType)
PulsarTopicType
- Pulsar 主题类型
0: 非持久非分区
1: 非持久分区
2: 持久非分区
3: 持久分区Copyright © 2022. All rights reserved.