注释类型 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.

    • 元素详细资料

      • corePoolSize

        int corePoolSize
        Set ExecutorService params -- corePoolSize
        默认值:
        1
      • maximumPoolSize

        int maximumPoolSize
        Set ExecutorService params -- maximumPoolSize
        默认值:
        1
      • keepAliveTime

        long keepAliveTime
        Set ExecutorService params -- keepAliveTime
        默认值:
        60000L
      • keepAliveTimeUnit

        TimeUnit keepAliveTimeUnit
        Set ExecutorService params -- keepAliveTimeUnit
        默认值:
        java.util.concurrent.TimeUnit.MILLISECONDS
      • blockingQueueSize

        int blockingQueueSize
        Set ExecutorService params -- blockingQueueSize
        默认值:
        2000
      • rocketMQTemplateBeanName

        String rocketMQTemplateBeanName
        Set rocketMQTemplate bean name, the default is rocketMQTemplate. if use ExtRocketMQTemplate, can set ExtRocketMQTemplate bean name.
        默认值:
        "rocketMQTemplate"