注释类型 RocketMQTransactionListener
-
@Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented @Component public @interface RocketMQTransactionListener
This annotation is used over a class which implements interface org.apache.rocketmq.spring.core.RocketMQLocalTransactionListener, which will be converted to org.apache.rocketmq.client.producer.TransactionListener later. The class implements two methods for process callback events after the txProducer sends a transactional message.Note: The annotation is used only on RocketMQ client producer side, it can not be used on consumer side.
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 intblockingQueueSizeSet ExecutorService params -- blockingQueueSizeintcorePoolSizeSet ExecutorService params -- corePoolSizelongkeepAliveTimeSet ExecutorService params -- keepAliveTimeTimeUnitkeepAliveTimeUnitSet ExecutorService params -- keepAliveTimeUnitintmaximumPoolSizeSet ExecutorService params -- maximumPoolSizeStringrocketMQTemplateBeanNameSet rocketMQTemplate bean name, the default is rocketMQTemplate.
-
-
-
-
keepAliveTimeUnit
TimeUnit keepAliveTimeUnit
Set ExecutorService params -- keepAliveTimeUnit- 默认值:
- java.util.concurrent.TimeUnit.MILLISECONDS
-
-
-
rocketMQTemplateBeanName
String rocketMQTemplateBeanName
Set rocketMQTemplate bean name, the default is rocketMQTemplate. if use ExtRocketMQTemplate, can set ExtRocketMQTemplate bean name.- 默认值:
- "rocketMQTemplate"
-
-