TopicProps
Properties for defining a Topic
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rocketmq-topic
Initializer
import com.aliyun.ros.cdk.rocketmq.TopicProps;
TopicProps.builder()
.instanceId(java.lang.String)
.instanceId(IResolvable)
.messageType(java.lang.Number)
.messageType(IResolvable)
.topic(java.lang.String)
.topic(IResolvable)
// .remark(java.lang.String)
// .remark(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
instanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceId: The ID of the instance. |
messageType |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property messageType: The type of the message. |
topic |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property topic: The name of the topic you want to create. |
remark |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property remark: The remarks on the request. |
instanceId
Required
public java.lang.Object getInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceId: The ID of the instance.
messageType
Required
public java.lang.Object getMessageType();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property messageType: The type of the message.
Valid values: 0: normal message 1: partitionally ordered message 2: globally ordered message 4: transactional message 5: scheduled/delayed message
topic
Required
public java.lang.Object getTopic();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property topic: The name of the topic you want to create.
Note: "CID" and "GID" are the reserved fields of a group ID, and they cannot be the start of a topic name. If namespaces are available in the instance for which the topic is created, the topic name must be unique in the instance and can be duplicated across instances. If no namespaces are available in the instance, the topic name must be unique both in the instance and across instances.
remark
Optional
public java.lang.Object getRemark();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property remark: The remarks on the request.
This parameter can be left blank.