@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface RocketMQMessageListener
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ACCESS_CHANNEL_PLACEHOLDER |
static String |
ACCESS_KEY_PLACEHOLDER |
static String |
NAME_SERVER_PLACEHOLDER |
static String |
SECRET_KEY_PLACEHOLDER |
static String |
TRACE_TOPIC_PLACEHOLDER |
| 限定符和类型 | 必需的元素和说明 |
|---|---|
String |
consumerGroup
Consumers of the same role is required to have exactly same subscriptions and consumerGroup to correctly achieve
load balance.
|
String |
topic
Topic name.
|
| 限定符和类型 | 可选元素和说明 |
|---|---|
String |
accessChannel
The property of "access-channel".
|
String |
accessKey
The property of "access-key".
|
ConsumeMode |
consumeMode
Control consume mode, you can choice receive message concurrently or orderly.
|
int |
consumeThreadMax
Max consumer thread number.
|
long |
consumeTimeout
Maximum amount of time in minutes a message may block the consuming thread.
|
String |
customizedTraceTopic
The name value of message trace topic.If you don't config,you can use the default trace topic name.
|
boolean |
enableMsgTrace
Switch flag instance for message trace.
|
MessageModel |
messageModel
Control message mode, if you want all subscribers receive message all message, broadcasting is a good choice.
|
String |
nameServer
The property of "name-server".
|
String |
secretKey
The property of "secret-key".
|
String |
selectorExpression
Control which message can be select.
|
SelectorType |
selectorType
Control how to selector message.
|
public static final String NAME_SERVER_PLACEHOLDER
public static final String ACCESS_KEY_PLACEHOLDER
public static final String SECRET_KEY_PLACEHOLDER
public static final String TRACE_TOPIC_PLACEHOLDER
public static final String ACCESS_CHANNEL_PLACEHOLDER
public abstract String topic
public abstract SelectorType selectorType
SelectorTypepublic abstract String selectorExpression
SelectorType.TAG and SelectorType.SQL92public abstract ConsumeMode consumeMode
public abstract MessageModel messageModel
public abstract long consumeTimeout
public abstract String accessKey
public abstract String secretKey
public abstract boolean enableMsgTrace
public abstract String customizedTraceTopic
public abstract String nameServer
public abstract String accessChannel
Copyright © 2020 Apache Software Foundation. All rights reserved.