public interface Client
| 限定符和类型 | 方法和说明 |
|---|---|
Client |
config(ClientConfigHandler configHandler)
配置
|
Client |
heartbeatHandler(HeartbeatHandler handler)
心跳
|
Client |
listen(Listener listener)
监听
|
ClientSession |
open()
打开会话
|
ClientSession |
openOrThow()
打开会话或出异常(即要求第一次是连接成功的)
|
Client heartbeatHandler(HeartbeatHandler handler)
Client config(ClientConfigHandler configHandler)
ClientSession open() throws IOException
IOExceptionClientSession openOrThow() throws IOException
IOExceptionCopyright © 2024. All rights reserved.