@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".
|
int |
awaitTerminationMillisWhenShutdown
Maximum time to await message consuming when shutdown consumer, in milliseconds.
|
ConsumeMode |
consumeMode
Control consume mode, you can choice receive message concurrently or orderly.
|
int |
consumeThreadMax
已过时。
This property is not work well, because the consumer thread pool executor use
LinkedBlockingQueue with default capacity bound (Integer.MAX_VALUE), use
consumeThreadNumber() . |
int |
consumeThreadNumber
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.
|
int |
delayLevelWhenNextConsume
Message consume retry strategy in concurrently mode
|
boolean |
enableMsgTrace
Switch flag instance for message trace.
|
int |
maxReconsumeTimes
Max re-consume times.
|
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 |
namespace
The namespace of consumer.
|
int |
replyTimeout
Timeout for sending reply messages.
|
String |
secretKey
The property of "secret-key".
|
String |
selectorExpression
Control which message can be select.
|
SelectorType |
selectorType
Control how to selector message.
|
int |
suspendCurrentQueueTimeMillis
The interval of suspending the pull in orderly mode, in milliseconds.
|
String |
tlsEnable
The property of "tlsEnable" default false.
|
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
@Deprecated public abstract int consumeThreadMax
LinkedBlockingQueue with default capacity bound (Integer.MAX_VALUE), use
consumeThreadNumber() .public abstract int maxReconsumeTimes
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
public abstract String tlsEnable
public abstract String namespace
public abstract int delayLevelWhenNextConsume
Copyright © 2022 Apache Software Foundation. All rights reserved.