| 程序包 | 说明 |
|---|---|
| com.alipay.remoting | |
| com.alipay.remoting.rpc.protocol |
| 限定符和类型 | 方法和说明 |
|---|---|
protected RemotingContext |
DefaultBizContext.getRemotingCtx()
get remoting context
|
RemotingContext |
RemotingContext.setTimeoutDiscard(boolean failFastEnabled) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
AbstractRemotingProcessor.doProcess(RemotingContext ctx,
T msg)
Do the process.
|
void |
CommandHandler.handleCommand(RemotingContext ctx,
Object msg)
Handle the command.
|
void |
RemotingProcessor.process(RemotingContext ctx,
T msg,
ExecutorService defaultExecutor)
Process the remoting command.
|
void |
AbstractRemotingProcessor.process(RemotingContext ctx,
T msg,
ExecutorService defaultExecutor)
Process the remoting command with its own executor or with the defaultExecutor if its own if null.
|
| 构造器和说明 |
|---|
DefaultBizContext(RemotingContext remotingCtx)
Constructor with RemotingContext
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RpcResponseProcessor.doProcess(RemotingContext ctx,
RemotingCommand cmd) |
void |
RpcHeartBeatProcessor.doProcess(RemotingContext ctx,
RemotingCommand msg) |
void |
RpcRequestProcessor.doProcess(RemotingContext ctx,
RpcRequestCommand cmd) |
void |
RpcCommandHandler.handleCommand(RemotingContext ctx,
Object msg) |
BizContext |
UserProcessor.preHandleRequest(RemotingContext remotingCtx,
T request)
Pre handle request, to avoid expose
RemotingContext directly to biz handle request logic. |
BizContext |
AbstractUserProcessor.preHandleRequest(RemotingContext remotingCtx,
T request)
Provide a default -
DefaultBizContext implementation of BizContext. |
void |
RpcRequestProcessor.process(RemotingContext ctx,
RpcRequestCommand cmd,
ExecutorService defaultExecutor) |
void |
RpcRequestProcessor.sendResponseIfNecessary(RemotingContext ctx,
byte type,
RemotingCommand response)
Send response using remoting context if necessary.
|
| 构造器和说明 |
|---|
RpcAsyncContext(RemotingContext ctx,
RpcRequestCommand cmd,
RpcRequestProcessor processor)
Default constructor.
|
Copyright © 2021. All rights reserved.