| 程序包 | 说明 |
|---|---|
| net.hasor.rsf.rpc.net |
负责处理RSF节点间的连接并保障网络通信。
|
| net.hasor.rsf.rpc.net.http |
Http 网络连接器。
|
| net.hasor.rsf.rpc.net.netty |
Netty 网络连接器。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected RsfChannel |
Connector.configListener(RsfChannel rsfChannel)
配置监听器
|
| 限定符和类型 | 方法和说明 |
|---|---|
net.hasor.utils.future.BasicFuture<RsfChannel> |
LinkPool.findChannel(String hostPortKey)
查找连接
|
Future<RsfChannel> |
Connector.findRsfChannelByHostPort(String hostPort)
根据主机ip和端口号查找 RsfChannel
|
Future<RsfChannel> |
Connector.getOrConnectionTo(InterAddress target)
建立或获取和远程的连接(异步+回调)
|
net.hasor.utils.future.BasicFuture<RsfChannel> |
LinkPool.preConnection(String hostPortKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
RsfNetManager.acceptChannel(RsfChannel rsfChannel) |
protected boolean |
Connector.acceptChannel(RsfChannel rsfChannel)
是否允许接入,IP黑名单实现
|
boolean |
ConnectionAccepter.acceptIn(RsfChannel rsfChannel) |
protected RsfChannel |
Connector.configListener(RsfChannel rsfChannel)
配置监听器
|
protected boolean |
RsfChannel.equalsSameAs(RsfChannel rsfChannel)
判断两个数据通道是相同的
|
void |
LinkPool.mappingTo(RsfChannel rsfChannel,
String hostPort) |
protected void |
Connector.receivedData(RsfChannel rsfChannel,
OptionInfo object)
接收到数据
|
void |
ReceivedAdapter.receivedMessage(RsfChannel rsfChannel,
OptionInfo info) |
void |
ReceivedListener.receivedMessage(RsfChannel rsfChannel,
OptionInfo info)
从远端收到Response消息。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract void |
Connector.connectionTo(InterAddress target,
net.hasor.utils.future.BasicFuture<RsfChannel> channelFuture)
连接到远程机器
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpConnector.connectionTo(InterAddress hostAddress,
net.hasor.utils.future.BasicFuture<RsfChannel> channelFuture) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
NettyConnector.receivedData(RsfChannel target,
OptionInfo object)
接收到数据(方法public化)
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
NettyConnector.connectionTo(InterAddress hostAddress,
net.hasor.utils.future.BasicFuture<RsfChannel> result)
连接到远程机器
|
Copyright © 2020–2021. All rights reserved.