public class DMConnectManager
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
aErrorToString(AError error) |
static DMConnectManager |
getInstance() |
java.lang.String |
printAError(AError error) |
java.lang.String |
printAResponse(AResponse response) |
void |
publish(ARequest request,
IConnectSendListener listener) |
void |
publish(java.lang.String topic,
java.lang.String data,
IConnectSendListener listener)
发布一个
|
void |
publishShadowRPC(java.lang.String topic,
java.lang.String replyTopic,
java.lang.String data,
IConnectSendListener listener) |
void |
subscribe(java.lang.String topic,
IConnectSubscribeListener listener) |
void |
subscribeShadowRRPC(java.lang.String topic,
java.lang.String replyTopic,
IShadowRRPC listener) |
void |
unsubscribe(java.lang.String topic,
IConnectUnscribeListener listener) |
public static DMConnectManager getInstance()
public void publish(java.lang.String topic, java.lang.String data, IConnectSendListener listener)
topic
- listener
- public void publish(ARequest request, IConnectSendListener listener)
public java.lang.String printAError(AError error)
public java.lang.String printAResponse(AResponse response)
public void publishShadowRPC(java.lang.String topic, java.lang.String replyTopic, java.lang.String data, IConnectSendListener listener)
public void subscribe(java.lang.String topic, IConnectSubscribeListener listener)
public void subscribeShadowRRPC(java.lang.String topic, java.lang.String replyTopic, IShadowRRPC listener)
public void unsubscribe(java.lang.String topic, IConnectUnscribeListener listener)
public java.lang.String aErrorToString(AError error)