注释类型 ExtRocketMQConsumerConfiguration
-
@Target(TYPE) @Retention(RUNTIME) @Documented @Component public @interface ExtRocketMQConsumerConfiguration
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringACCESS_CHANNEL_PLACEHOLDERstatic StringACCESS_KEY_PLACEHOLDERstatic StringGROUP_PLACEHOLDERstatic StringNAME_SERVER_PLACEHOLDERstatic StringSECRET_KEY_PLACEHOLDERstatic StringTOPIC_PLACEHOLDERstatic StringTRACE_TOPIC_PLACEHOLDER
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 StringaccessChannelThe property of "access-channel".StringaccessKeyThe property of "access-key".StringcustomizedTraceTopicThe name value of message trace topic.If you don't config,you can use the default trace topic name.booleanenableMsgTraceSwitch flag instance for message trace.StringgroupGroup name of consumer.StringinstanceNameThe property of "instanceName".MessageModelmessageModelControl message mode, if you want all subscribers receive message all message, broadcasting is a good choice.StringnameServerThe property of "name-server".StringnamespaceThe namespace of consumer.StringnamespaceV2The namespace v2 version of consumer, it can not be used in combination with namespace.intpullBatchSizeMaximum number of messages pulled each time.StringsecretKeyThe property of "secret-key".StringselectorExpressionControl which message can be select.SelectorTypeselectorTypeControl how to selector message.StringtlsEnableThe property of "tlsEnable" default false.StringtopicTopic name of consumer.StringvalueThe component name of the Producer configuration.
-
-
-
字段详细资料
-
NAME_SERVER_PLACEHOLDER
static final String NAME_SERVER_PLACEHOLDER
-
-
-
GROUP_PLACEHOLDER
static final String GROUP_PLACEHOLDER
-
-
-
TOPIC_PLACEHOLDER
static final String TOPIC_PLACEHOLDER
-
-
-
ACCESS_CHANNEL_PLACEHOLDER
static final String ACCESS_CHANNEL_PLACEHOLDER
-
-
-
ACCESS_KEY_PLACEHOLDER
static final String ACCESS_KEY_PLACEHOLDER
-
-
-
SECRET_KEY_PLACEHOLDER
static final String SECRET_KEY_PLACEHOLDER
-
-
-
TRACE_TOPIC_PLACEHOLDER
static final String TRACE_TOPIC_PLACEHOLDER
-
-
元素详细资料
-
value
String value
The component name of the Producer configuration.- 默认值:
- ""
-
-
-
nameServer
String nameServer
The property of "name-server".- 默认值:
- "${rocketmq.name-server:}"
-
-
-
accessChannel
String accessChannel
The property of "access-channel".- 默认值:
- "${rocketmq.access-channel:}"
-
-
-
group
String group
Group name of consumer.- 默认值:
- "${rocketmq.pull-consumer.group:}"
-
-
-
topic
String topic
Topic name of consumer.- 默认值:
- "${rocketmq.pull-consumer.topic:}"
-
-
-
messageModel
MessageModel messageModel
Control message mode, if you want all subscribers receive message all message, broadcasting is a good choice.- 默认值:
- org.apache.rocketmq.spring.annotation.MessageModel.CLUSTERING
-
-
-
selectorType
SelectorType selectorType
Control how to selector message.- 另请参阅:
SelectorType
- 默认值:
- org.apache.rocketmq.spring.annotation.SelectorType.TAG
-
-
-
selectorExpression
String selectorExpression
Control which message can be select. Grammar please seeSelectorType.TAGandSelectorType.SQL92- 默认值:
- "*"
-
-
-
accessKey
String accessKey
The property of "access-key".- 默认值:
- "${rocketmq.pull-consumer.access-key:}"
-
-
-
secretKey
String secretKey
The property of "secret-key".- 默认值:
- "${rocketmq.pull-consumer.secret-key:}"
-
-
-
tlsEnable
String tlsEnable
The property of "tlsEnable" default false.- 默认值:
- "false"
-
-
-
customizedTraceTopic
String customizedTraceTopic
The name value of message trace topic.If you don't config,you can use the default trace topic name.- 默认值:
- "${rocketmq.pull-consumer.customized-trace-topic:}"
-
-
-
namespace
String namespace
The namespace of consumer.- 默认值:
- ""
-
-
-
namespaceV2
String namespaceV2
The namespace v2 version of consumer, it can not be used in combination with namespace.- 默认值:
- ""
-
-
-
instanceName
String instanceName
The property of "instanceName".- 默认值:
- "DEFAULT"
-
-