| 限定符和类型 | 方法和说明 |
|---|---|
JConnection |
JNetServer.getConnection(long id) |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<JConnection> |
JNetServer.getConnections() |
CompletableFuture<JConnection> |
JConnection.writeAndFlushFutureAble(byte[] bytes) |
CompletableFuture<JConnection> |
JConnection.writeAndFlushFutureAble(Object bytes) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
JConnectionIdleListener.connectionClosed(JConnection connection) |
void |
JConnectionListener.connectionClosed(JConnection connection) |
void |
JConnectionIdleListener.connectionOpened(JConnection connection) |
void |
JConnectionListener.connectionOpened(JConnection connection) |
void |
JConnectionIdleListener.event_AllIdleTimeOut(JConnection connection)
读写空闲超时事件
|
void |
JConnectionIdleListener.event_ReadIdleTimeOut(JConnection connection)
读空闲超时
|
void |
JConnectionIdleListener.event_WriteIdleTimeOut(JConnection connection)
写空闲超时
|
void |
JConnectionIdleListener.messageArrived(JConnection conn,
M msg) |
void |
JConnectionListener.messageArrived(JConnection conn,
M msg) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
NettyConnection
实现的连接
|
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<JConnection> |
NettyConnection.writeAndFlushFutureAble(byte[] bytes) |
CompletableFuture<JConnection> |
NettyConnection.writeAndFlushFutureAble(Object bytes) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected JConnection |
AbstractListenerHandler.buildConnection(io.netty.channel.ChannelHandlerContext ctx)
创建一个链接实例
|
protected JConnection |
AbstractListenerHandler.findConnection(io.netty.channel.Channel channel)
查找链接
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
HeartAbleConnectionListener.autoResponseHeartReq(T req,
JConnection connection)
自动回复心跳请求
|
protected boolean |
HeartAbleConnectionListener.autoShieldHeartRsp(T rsp,
JConnection connection)
自动屏蔽心跳回复
|
void |
HeartAbleConnectionListener.connectionClosed(JConnection connection) |
void |
HeartAbleConnectionListener.connectionOpened(JConnection connection) |
protected abstract void |
HeartAbleConnectionListener.doSendHeartReq(JConnection connection)
发送心跳请求
|
protected abstract void |
HeartAbleConnectionListener.doSendHeartRsp(JConnection connection)
发送心跳回复
|
void |
HeartAbleConnectionListener.event_AllIdleTimeOut(JConnection connection) |
void |
HeartAbleConnectionListener.event_ReadIdleTimeOut(JConnection connection) |
void |
HeartAbleConnectionListener.event_WriteIdleTimeOut(JConnection connection) |
protected HeartAbleConnectionListener.HeartConfig |
HeartAbleConnectionListener.getHeartConfig(JConnection connection)
获取链路心跳配置
|
void |
HeartAbleConnectionListener.messageArrived(JConnection conn,
T msg) |
protected void |
HeartAbleConnectionListener.onAllIdleTimeOut(JConnection connection)
读写超时
|
protected abstract void |
HeartAbleConnectionListener.onConnectionClosed(JConnection connection) |
protected abstract void |
HeartAbleConnectionListener.onConnectionOpened(JConnection connection) |
protected void |
HeartAbleConnectionListener.onHeartConfigInit(JConnection connection) |
protected abstract void |
HeartAbleConnectionListener.onMessageArrived(JConnection conn,
T msg)
处理收到的消息
|
protected void |
HeartAbleConnectionListener.onReadTimeOutContLimit(JConnection connection)
当读超时达次数到上限则默认关闭连接
|
protected void |
HeartAbleConnectionListener.resetHeartReadTimeOut(JConnection conn)
重置心跳发送序号
|
protected void |
HeartAbleConnectionListener.setHeartConfig(JConnection connection,
HeartAbleConnectionListener.HeartConfig heartConfig)
设置链路心跳配置
|
| 限定符和类型 | 方法和说明 |
|---|---|
JConnection |
NettyServer.getConnection(long id) |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<JConnection> |
NettyServer.getConnections() |
Copyright © 2020. All rights reserved.