| 程序包 | 说明 |
|---|---|
| me.hekr.iotos.softgateway.network.common | |
| me.hekr.iotos.softgateway.network.common.client | |
| me.hekr.iotos.softgateway.network.common.listener |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> ConnectionContext<T> |
ConnectionContext.wrap(InetSocketAddress address) |
static <T> ConnectionContext<T> |
ConnectionContext.wrap(InetSocketAddress address,
T message) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
EventListener.exceptionCaught(ConnectionContext<T> ctx,
Throwable t)
异常处理
|
void |
EventListenerAdapter.exceptionCaught(ConnectionContext<T> ctx,
Throwable t) |
void |
EventListener.onConnect(ConnectionContext<T> ctx)
客户端与服务端建立连接
|
void |
EventListenerAdapter.onConnect(ConnectionContext<T> ctx) |
void |
EventListener.onDisconnect(ConnectionContext<T> ctx,
CloseReason reason)
客户端与服务端断开连接
|
void |
EventListenerAdapter.onDisconnect(ConnectionContext<T> ctx,
CloseReason reason) |
void |
EventListener.onHeartbeatTimeout(ConnectionContext<T> ctx,
java.time.LocalDateTime lastOccurTime,
int count)
* 客户端不活跃(超过了设定的心跳超时时间)
|
void |
EventListenerAdapter.onHeartbeatTimeout(ConnectionContext<T> ctx,
java.time.LocalDateTime lastOccurTime,
int count) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
MessageListener<T extends ConnectionContext<?>> |
Copyright © 2022. All rights reserved.