public class PersistentConnect extends AConnect implements IConnectResourceRegister, IConnectAuth<java.util.Map<java.lang.String,java.lang.String>>
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CONNECT_ID |
connectId, connectInfo, connectOption, connectState, notifyListener
构造器和说明 |
---|
PersistentConnect() |
限定符和类型 | 方法和说明 |
---|---|
void |
init(AConnectConfig config,
IConnectInitListener initListener) |
void |
onAuth(java.util.Map<java.lang.String,java.lang.String> authInfo) |
void |
onDestroy() |
void |
onPrepareAuthFail(AError error) |
void |
publishResource(AResource resource,
IBaseListener listener) |
void |
registerResource(AResource resource,
IResourceRequestListener listener) |
void |
send(ARequest request,
IConnectSendListener sendListener) |
void |
setNotifyListener(IConnectNotifyListener notifyListener) |
void |
subscribe(ARequest subscribe,
IConnectSubscribeListener subscribeListener) |
void |
subscribeRrpc(ARequest request,
IConnectRrpcListener rrpcListener)
MQTT RRPC请求模式。
|
void |
unregisterResource(AResource resource,
IBaseListener listener) |
void |
unsubscribe(ARequest subscribe,
IConnectUnscribeListener unscribeListener) |
getConnectId, getConnectInfo, getConnectState, setConnectId, updateConnectOption, updateConnectState
public static final java.lang.String CONNECT_ID
public void init(AConnectConfig config, IConnectInitListener initListener)
public void setNotifyListener(IConnectNotifyListener notifyListener)
setNotifyListener
在类中 AConnect
public void onAuth(java.util.Map<java.lang.String,java.lang.String> authInfo)
onAuth
在接口中 IConnectAuth<java.util.Map<java.lang.String,java.lang.String>>
public void onPrepareAuthFail(AError error)
onPrepareAuthFail
在接口中 IConnectAuth<java.util.Map<java.lang.String,java.lang.String>>
public void send(ARequest request, IConnectSendListener sendListener)
public void subscribe(ARequest subscribe, IConnectSubscribeListener subscribeListener)
public void unsubscribe(ARequest subscribe, IConnectUnscribeListener unscribeListener)
unsubscribe
在类中 AConnect
public void subscribeRrpc(ARequest request, IConnectRrpcListener rrpcListener)
AConnect
subscribeRrpc
在类中 AConnect
public void registerResource(AResource resource, IResourceRequestListener listener)
registerResource
在接口中 IConnectResourceRegister
public void unregisterResource(AResource resource, IBaseListener listener)
unregisterResource
在接口中 IConnectResourceRegister
public void publishResource(AResource resource, IBaseListener listener)
publishResource
在接口中 IConnectResourceRegister