public class MqTransactionProducer extends Object
| Constructor and Description |
|---|
MqTransactionProducer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sendMsg(Object mQLocalExecuterService,
String method,
Object arg,
String topic,
String tag,
Object body)
发送消息
适用场景: 调用方式: 业务逻辑说明 |
static void |
sendMsg(Object mQLocalExecuterService,
String method,
Object arg,
String topic,
String tag,
String key,
Object body)
发送消息
适用场景: 调用方式: 业务逻辑说明 |
void |
setCacheService(com.ohaotian.plugin.cache.CacheService cacheService)
设置 缓存service
|
void |
setMqTranProducerPool(MqTranProducerPool mqTranProducerPool)
设置 生产者池
|
public void setMqTranProducerPool(MqTranProducerPool mqTranProducerPool)
mqTranProducerPool - 生产者池public void setCacheService(com.ohaotian.plugin.cache.CacheService cacheService)
cacheService - 缓存servicepublic static void sendMsg(Object mQLocalExecuterService, String method, Object arg, String topic, String tag, Object body)
mQLocalExecuterService - 业务处理实例method - 需要执行的方法arg - 需要执行的方法的入餐topic - 消息主题tag - 消息tagbody - 消息内容Copyright © 2018. All rights reserved.