public abstract class AConnect
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
connectId
连接ID
|
protected AConnectInfo |
connectInfo
连接信息。 用于外部获取连接建立后的相关信息
|
protected AConnectOption |
connectOption
连接Option。用于连接建立完成后外部更新连接的设置。
|
protected ConnectState |
connectState
连接状态
|
protected IConnectNotifyListener |
notifyListener |
Constructor and Description |
---|
AConnect() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConnectId() |
AConnectInfo |
getConnectInfo() |
ConnectState |
getConnectState() |
abstract void |
init(Context context,
AConnectConfig config,
IConnectInitListener initListener) |
abstract void |
onDestroy() |
abstract void |
send(ARequest request,
IConnectSendListener sendListener) |
void |
setConnectId(java.lang.String connectId) |
void |
setNotifyListener(IConnectNotifyListener notifyListener) |
abstract void |
subscribe(ARequest request,
IConnectSubscribeListener subscribeListener) |
void |
subscribeRrpc(ARequest request,
IConnectRrpcListener rrpcListener)
Deprecated.
|
abstract void |
unsubscribe(ARequest request,
IConnectUnscribeListener unscribeListener) |
void |
updateConnectOption(AConnectOption option) |
void |
updateConnectState(ConnectState state) |
protected java.lang.String connectId
protected ConnectState connectState
protected AConnectOption connectOption
protected AConnectInfo connectInfo
protected IConnectNotifyListener notifyListener
public java.lang.String getConnectId()
public void setConnectId(java.lang.String connectId)
public ConnectState getConnectState()
public void updateConnectState(ConnectState state)
public abstract void init(Context context, AConnectConfig config, IConnectInitListener initListener)
public void updateConnectOption(AConnectOption option)
public AConnectInfo getConnectInfo()
public abstract void onDestroy()
public abstract void send(ARequest request, IConnectSendListener sendListener)
public abstract void subscribe(ARequest request, IConnectSubscribeListener subscribeListener)
public abstract void unsubscribe(ARequest request, IConnectUnscribeListener unscribeListener)
@Deprecated public void subscribeRrpc(ARequest request, IConnectRrpcListener rrpcListener)
request
- rrpcListener
- public void setNotifyListener(IConnectNotifyListener notifyListener)