public interface IConnectSDK
限定符和类型 | 方法和说明 |
---|---|
IConnectDiscovery |
getConnectDiscovery(java.lang.String connnctId) |
AConnectInfo |
getConnectInfo(java.lang.String connectId)
获取连接建立后的相关信息
|
IConnectResourceRegister |
getConnectResourceRegister(java.lang.String connectId) |
ConnectState |
getConnectState(java.lang.String connectId)
获取连接状态
|
java.lang.String |
getPersistentConnectId() |
void |
init() |
boolean |
isConnectRegisted(java.lang.String connectId) |
void |
publishResource(AResource resource,
IConnectPublishResourceListener sendListener)
更新Resource, 支持往ALCS Server Connect 及Mqtt。
|
void |
registerNofityListener(java.lang.String connectId,
IConnectNotifyListener connectNotifyListener) |
void |
registerPersistentConnect(PersistentConnectConfig connectConfig,
IRegisterConnectListener listener)
注册长连接通道,单应用只允许注册单个
|
void |
registerResource(AResource resource,
IResourceRequestListener listener)
不指定ConnectId注册资源
|
void |
send(ARequest request,
IConnectSendListener sendListener)
SDK 内部自行选择连接通道发送请求
|
void |
send(java.lang.String connectId,
ARequest request,
IConnectSendListener sendListener)
指定连接通道发送请求
|
void |
subscribe(java.lang.String connectId,
ARequest request,
IConnectSubscribeListener subscribeListener) |
void |
subscribeRrpc(java.lang.String connectId,
ARequest request,
IConnectRrpcListener listener)
已过时。
|
void |
unregisterConnect(java.lang.String connectId)
注销Connect
|
void |
unregisterNofityListener(IConnectNotifyListener connectNotifyListener) |
void |
unsubscribe(java.lang.String connectId,
ARequest request,
IConnectUnscribeListener unscribeListener) |
void |
updateConnectOption(java.lang.String connectId,
AConnectOption option)
更新连接建立后的动态配置信息
|
void init()
void registerPersistentConnect(PersistentConnectConfig connectConfig, IRegisterConnectListener listener)
connectConfig
- listener
- void unregisterConnect(java.lang.String connectId)
connectId
- java.lang.String getPersistentConnectId()
boolean isConnectRegisted(java.lang.String connectId)
ConnectState getConnectState(java.lang.String connectId)
connectId
- void updateConnectOption(java.lang.String connectId, AConnectOption option)
connectId
- option
- AConnectInfo getConnectInfo(java.lang.String connectId)
connectId
- void send(ARequest request, IConnectSendListener sendListener)
request
- sendListener
- void send(java.lang.String connectId, ARequest request, IConnectSendListener sendListener)
connectId
- request
- sendListener
- void registerResource(AResource resource, IResourceRequestListener listener)
void publishResource(AResource resource, IConnectPublishResourceListener sendListener)
resource
- sendListener
- void subscribe(java.lang.String connectId, ARequest request, IConnectSubscribeListener subscribeListener)
void unsubscribe(java.lang.String connectId, ARequest request, IConnectUnscribeListener unscribeListener)
@Deprecated void subscribeRrpc(java.lang.String connectId, ARequest request, IConnectRrpcListener listener)
connectId
- request
- listener
- void registerNofityListener(java.lang.String connectId, IConnectNotifyListener connectNotifyListener)
void unregisterNofityListener(IConnectNotifyListener connectNotifyListener)
IConnectDiscovery getConnectDiscovery(java.lang.String connnctId)
IConnectResourceRegister getConnectResourceRegister(java.lang.String connectId)