public class SendOnsMsg extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static SendOnsMsg |
getInstance() |
com.aliyun.openservices.ons.api.SendResult |
SendMsg(String producerId,
String topic,
String msg)
给默认tag发送消息(配置文件) 发送消息
|
com.aliyun.openservices.ons.api.SendResult |
SendMsg(String producerId,
String topic,
String tag,
byte[] body) |
com.aliyun.openservices.ons.api.SendResult |
SendMsg(String producerId,
String topic,
String tag,
String msg)
发送消息
|
public static final SendOnsMsg getInstance()
public com.aliyun.openservices.ons.api.SendResult SendMsg(String producerId, String topic, String tag, String msg)
producerId - producerIdtopic - 主题tag - 标签msg - 发送的信息public com.aliyun.openservices.ons.api.SendResult SendMsg(String producerId, String topic, String tag, byte[] body)
Copyright © 2016. All rights reserved.