| 程序包 | 说明 |
|---|---|
| cloud.tianai.remoting.api |
| 限定符和类型 | 方法和说明 |
|---|---|
Channel |
RemotingChannelHolder.getChannel()
获取管道
|
| 限定符和类型 | 方法和说明 |
|---|---|
default Object |
RemotingDataInterceptor.beforeReadMessage(Channel channel,
Object msg,
Object extend)
读到数据, 回调函数
|
default Object |
RemotingDataInterceptor.beforeWriteMessage(Channel channel,
Object msg,
Object extend)
在写数据之前调用
|
static DefaultFuture |
DefaultFuture.newFuture(Channel channel,
Request request,
int timeout) |
static DefaultFuture |
DefaultFuture.newFuture(Channel channel,
Request request,
int timeout,
ExecutorService executor) |
void |
RequestResponseRemotingDataProcessor.readMessage(Channel channel,
Object msg,
Object extend) |
void |
RemotingDataProcessor.readMessage(Channel channel,
Object msg,
Object extend)
读到数据, 回调函数
|
static void |
DefaultFuture.received(Channel channel,
Response response,
boolean timeout) |
void |
RequestResponseRemotingDataProcessor.sendError(Channel channel,
Throwable ex,
Object data) |
void |
RemotingDataProcessor.sendError(Channel channel,
Throwable ex,
Object data)
发送异常
|
void |
RequestResponseRemotingDataProcessor.sendHeartbeat(Channel channel,
Object extend) |
void |
RemotingDataProcessor.sendHeartbeat(Channel channel,
Object extend)
发送心跳请求
|
Object |
RequestResponseRemotingDataProcessor.writeMessage(Channel channel,
Object msg,
Object extend) |
default Object |
RemotingDataProcessor.writeMessage(Channel channel,
Object msg,
Object extend)
写数据,回调函数, 用于扩展
|
Copyright © 2020. All rights reserved.