public interface IConnection extends Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
connect(Long connectionEndTime)
channel connect
|
default boolean |
connectWithBtn(Long connectionEndTime) |
boolean |
disConnect()
channel disconnect
|
void |
disConnectForce()
disconnect by command
|
boolean |
registerEventHandler(IConnectionCallback callback)
register event handler
|
void |
updateLastActiveTime()
update last active time
|
boolean connect(Long connectionEndTime)
default boolean connectWithBtn(Long connectionEndTime)
boolean disConnect()
void disConnectForce()
void updateLastActiveTime()
boolean registerEventHandler(IConnectionCallback callback)
callback - cbCopyright © 2022. All rights reserved.