public abstract class AConnect
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected java.lang.String |
connectId
连接ID
|
protected AConnectInfo |
connectInfo
连接信息。
|
protected AConnectOption |
connectOption
连接Option。
|
protected ConnectState |
connectState
连接状态
|
protected IConnectNotifyListener |
notifyListener |
构造器和说明 |
---|
AConnect() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getConnectId() |
AConnectInfo |
getConnectInfo() |
ConnectState |
getConnectState() |
abstract void |
init(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)
已过时。
|
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(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)