use of com.aliyun.mns.model.RawTopicMessage in project jeesuite-libs by vakinge.
the class MNSProducer method publishMessage.
public String publishMessage(String topicName, Object data) {
CloudTopic topic = getTopic(topicName);
TopicMessage tMessage = new RawTopicMessage();
tMessage.setBaseMessageBody(new MQMessage(topicName, data).toMessageValue(true));
topic.publishMessage(tMessage);
return tMessage.getMessageId();
}
use of com.aliyun.mns.model.RawTopicMessage in project jeesuite-libs by vakinge.
the class MNSProducer method publishMessage.
public String publishMessage(String topicName, Object data) {
CloudTopic topic = getTopic(topicName);
TopicMessage tMessage = new RawTopicMessage();
tMessage.setBaseMessageBody(new MQMessage(topicName, data).toMessageValue(true));
topic.publishMessage(tMessage);
return tMessage.getMessageId();
}
Aggregations