public class SMGPSession extends Object implements Session
| 构造器和说明 |
|---|
SMGPSession(SMGPConnection connection,
boolean authenticated) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
authenticate() |
void |
close() |
String |
getSessionId() |
void |
heartbeat() |
boolean |
isAuthenticated() |
void |
process(Message message) |
void |
registerCallbackHandler(Callback callback)
注册回调函数
|
void |
send(Message message) |
void |
submit(Object extId,
String content,
String spNumber,
String userNumber) |
void |
submit(String content,
String spNumber,
String userNumber) |
public SMGPSession(SMGPConnection connection, boolean authenticated)
public String getSessionId()
getSessionId 在接口中 Sessionpublic boolean isAuthenticated()
isAuthenticated 在接口中 Sessionpublic boolean authenticate()
authenticate 在接口中 Sessionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic void process(Message message) throws IOException
process 在接口中 SessionIOExceptionpublic void registerCallbackHandler(Callback callback)
SessionregisterCallbackHandler 在接口中 SessionCopyright © 2019. All rights reserved.