@Target(value={TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented @Component public @interface RocketMQTransactionListener
Note: The annotation is used only on RocketMQ client producer side, it can not be used on consumer side.
| 限定符和类型 | 可选元素和说明 |
|---|---|
String |
accessKey
The property of "access-key"
|
int |
blockingQueueSize
Set ExecutorService params -- blockingQueueSize
|
int |
corePoolSize
Set ExecutorService params -- corePoolSize
|
long |
keepAliveTime
Set ExecutorService params -- keepAliveTime
|
int |
maximumPoolSize
Set ExecutorService params -- maximumPoolSize
|
String |
secretKey
The property of "secret-key"
|
String |
txProducerGroup
Declare the txProducerGroup that is used to relate callback event to the listener, rocketMQTemplate must send a
transactional message with the declared txProducerGroup.
|
public abstract String txProducerGroup
It is suggested to use the default txProducerGroup if your system only needs to define a TransactionListener class.
public abstract int maximumPoolSize
public abstract long keepAliveTime
public abstract int blockingQueueSize
public abstract String accessKey
public abstract String secretKey
Copyright © 2019 Apache Software Foundation. All rights reserved.