接口 EMC
- 所有已知实现类:
EMCClient
public interface EMC
Entry point interface of DAP Middleware EMC (Message Management Center)
EMC消息中心SDk,方便开发人员快速方便的接发送任意形式的消息
- 从以下版本开始:
- 1.0.0
- 作者:
- fobgochod
-
方法概要
修饰符和类型方法说明连接池统计信息voidsend(MessageInfo message, String userToken) 发送全部消息,需要指定消息类型void发送消息,联系人使用配置void发送消息,指定联系人voidshutdown()Shuts down the EMC instance (release all resources) The EMC instance is not usable after its shutdown() is called.
-
方法详细资料
-
send
发送消息,联系人使用配置- 参数:
eventId- 事件IDpayload- 消息内容userToken- userToken
-
send
发送消息,指定联系人- 参数:
eventId- 事件IDpayload- 消息内容contacts- 联系人userToken- userToken
-
send
发送全部消息,需要指定消息类型- 参数:
message- 目标目录IDuserToken- 用户token
-
shutdown
void shutdown()Shuts down the EMC instance (release all resources) The EMC instance is not usable after its shutdown() is called. -
getConnectionPoolStats
String getConnectionPoolStats()连接池统计信息- 返回:
- 统计信息
-