| 程序包 | 说明 |
|---|---|
| com.alipay.remoting | |
| com.alipay.remoting.rpc | |
| com.alipay.remoting.rpc.protocol |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractRemotingProcessor<T extends RemotingCommand>
Processor to process remoting command.
|
interface |
RemotingProcessor<T extends RemotingCommand>
Remoting processor processes remoting commands.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends RemotingCommand> |
CommandFactory.createConnectionClosedResponse(InetSocketAddress address,
String message) |
<T extends RemotingCommand> |
CommandFactory.createExceptionResponse(int id,
ResponseStatus status) |
<T extends RemotingCommand> |
CommandFactory.createExceptionResponse(int id,
ResponseStatus status,
Throwable t) |
<T extends RemotingCommand> |
CommandFactory.createExceptionResponse(int id,
String errMsg) |
<T extends RemotingCommand> |
CommandFactory.createExceptionResponse(int id,
Throwable t,
String errMsg) |
<T extends RemotingCommand> |
CommandFactory.createRequestCommand(Object requestObject)
create a request command with request object
|
<T extends RemotingCommand> |
CommandFactory.createResponse(Object responseObject,
RemotingCommand requestCmd)
create a normal response with response object
|
<T extends RemotingCommand> |
CommandFactory.createSendFailedResponse(InetSocketAddress address,
Throwable throwable) |
<T extends RemotingCommand> |
CommandFactory.createTimeoutResponse(InetSocketAddress address) |
| 限定符和类型 | 方法和说明 |
|---|---|
RemotingCommand |
InvokeFuture.createConnectionClosedResponse(InetSocketAddress responseHost)
Create a remoting command response when connection closed
|
protected RemotingCommand |
BaseRemoting.invokeSync(Connection conn,
RemotingCommand request,
int timeoutMillis)
Synchronous invocation
|
RemotingCommand |
InvokeFuture.waitResponse()
Wait response with unlimit timeout
|
RemotingCommand |
InvokeFuture.waitResponse(long timeoutMillis)
Wait response with timeout.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract InvokeFuture |
BaseRemoting.createInvokeFuture(Connection conn,
RemotingCommand request,
InvokeContext invokeContext,
InvokeCallback invokeCallback)
Create invoke future with
InvokeContext. |
protected abstract InvokeFuture |
BaseRemoting.createInvokeFuture(RemotingCommand request,
InvokeContext invokeContext)
Create invoke future with
InvokeContext. |
<T extends RemotingCommand> |
CommandFactory.createResponse(Object responseObject,
RemotingCommand requestCmd)
create a normal response with response object
|
protected RemotingCommand |
BaseRemoting.invokeSync(Connection conn,
RemotingCommand request,
int timeoutMillis)
Synchronous invocation
|
protected void |
BaseRemoting.invokeWithCallback(Connection conn,
RemotingCommand request,
InvokeCallback invokeCallback,
int timeoutMillis)
Invocation with callback.
|
protected InvokeFuture |
BaseRemoting.invokeWithFuture(Connection conn,
RemotingCommand request,
int timeoutMillis)
Invocation with future returned.
|
protected void |
BaseRemoting.oneway(Connection conn,
RemotingCommand request)
Oneway invocation.
|
void |
InvokeFuture.putResponse(RemotingCommand response)
Put the response to the future.
|
io.netty.channel.ChannelFuture |
RemotingContext.writeAndFlush(RemotingCommand msg)
Wrap the writeAndFlush method.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
HeartbeatAckCommand
Heartbeat ack.
|
class |
HeartbeatCommand
Heart beat.
|
class |
RequestCommand
Command of request.
|
class |
ResponseCommand
Command of response.
|
class |
RpcCommand
Remoting command.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RemotingCommand |
DefaultInvokeFuture.createConnectionClosedResponse(InetSocketAddress responseHost) |
RemotingCommand |
RpcCommandFactory.createConnectionClosedResponse(InetSocketAddress address,
String message) |
RemotingCommand |
RpcCommandFactory.createSendFailedResponse(InetSocketAddress address,
Throwable throwable) |
protected RemotingCommand |
RpcRemoting.toRemotingCommand(Object request,
Connection conn,
InvokeContext invokeContext,
int timeoutMillis)
Convert application request object to remoting request command.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected InvokeFuture |
RpcRemoting.createInvokeFuture(Connection conn,
RemotingCommand request,
InvokeContext invokeContext,
InvokeCallback invokeCallback) |
protected InvokeFuture |
RpcRemoting.createInvokeFuture(RemotingCommand request,
InvokeContext invokeContext) |
RpcResponseCommand |
RpcCommandFactory.createResponse(Object responseObject,
RemotingCommand requestCmd) |
protected abstract void |
RpcRemoting.preProcessInvokeContext(InvokeContext invokeContext,
RemotingCommand cmd,
Connection connection) |
protected void |
RpcServerRemoting.preProcessInvokeContext(InvokeContext invokeContext,
RemotingCommand cmd,
Connection connection) |
protected void |
RpcClientRemoting.preProcessInvokeContext(InvokeContext invokeContext,
RemotingCommand cmd,
Connection connection) |
void |
DefaultInvokeFuture.putResponse(RemotingCommand response) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
RpcRequestCommand
Request command for Rpc.
|
class |
RpcResponseCommand
Response command for Rpc.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RpcResponseProcessor.doProcess(RemotingContext ctx,
RemotingCommand cmd) |
void |
RpcHeartBeatProcessor.doProcess(RemotingContext ctx,
RemotingCommand msg) |
void |
RpcRequestProcessor.sendResponseIfNecessary(RemotingContext ctx,
byte type,
RemotingCommand response)
Send response using remoting context if necessary.
|
Copyright © 2021. All rights reserved.