public class MqTranProducerPool extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
MqTranProducerPool() |
| Modifier and Type | Method and Description |
|---|---|
Properties |
getPropertyConfigurer()
返回 全局配置文件
|
com.aliyun.openservices.ons.api.transaction.TransactionProducer |
getSynTransactionProducer(String topic)
获取生产者
适用场景: 调用方式: 业务逻辑说明 |
com.aliyun.openservices.ons.api.transaction.TransactionProducer |
getTransactionProducer(String topic)
获取生产者
适用场景: 调用方式: 业务逻辑说明 |
void |
init() |
boolean |
isNativeOns()
返回 是否开启本地模式
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCacheService(com.ohaotian.plugin.cache.CacheService cacheService)
设置 缓存service
|
void |
setLocalTransactionChecker(com.aliyun.openservices.ons.api.transaction.LocalTransactionChecker localTransactionChecker)
设置 本地事务检查机制
|
void |
setPropertyConfigurer(Properties propertyConfigurer)
设置 全局配置文件
|
public void setLocalTransactionChecker(com.aliyun.openservices.ons.api.transaction.LocalTransactionChecker localTransactionChecker)
localTransactionChecker - 本地事务检查机制public void setPropertyConfigurer(Properties propertyConfigurer)
propertyConfigurer - 全局配置文件public Properties getPropertyConfigurer()
public boolean isNativeOns()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setCacheService(com.ohaotian.plugin.cache.CacheService cacheService)
cacheService - 缓存servicepublic void init()
public com.aliyun.openservices.ons.api.transaction.TransactionProducer getTransactionProducer(String topic)
public com.aliyun.openservices.ons.api.transaction.TransactionProducer getSynTransactionProducer(String topic)
Copyright © 2018. All rights reserved.