public class RpcRequestProcessor extends AbstractRemotingProcessor<RpcRequestCommand>
| 构造器和说明 |
|---|
RpcRequestProcessor()
Default constructor.
|
RpcRequestProcessor(CommandFactory commandFactory)
Constructor.
|
RpcRequestProcessor(ExecutorService executor)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doProcess(RemotingContext ctx,
RpcRequestCommand cmd)
Do the process.
|
void |
process(RemotingContext ctx,
RpcRequestCommand cmd,
ExecutorService defaultExecutor)
Process the remoting command with its own executor or with the defaultExecutor if its own if null.
|
void |
sendResponseIfNecessary(RemotingContext ctx,
byte type,
RemotingCommand response)
Send response using remoting context if necessary.
|
getCommandFactory, getExecutor, setCommandFactory, setExecutorpublic RpcRequestProcessor()
public RpcRequestProcessor(CommandFactory commandFactory)
public RpcRequestProcessor(ExecutorService executor)
public void process(RemotingContext ctx, RpcRequestCommand cmd, ExecutorService defaultExecutor) throws Exception
AbstractRemotingProcessorprocess 在接口中 RemotingProcessor<RpcRequestCommand>process 在类中 AbstractRemotingProcessor<RpcRequestCommand>ctx - RemotingContextcmd - TdefaultExecutor - ExecutorService, default executorExceptionAbstractRemotingProcessor.process(com.alipay.remoting.RemotingContext, com.alipay.remoting.RemotingCommand, java.util.concurrent.ExecutorService)public void doProcess(RemotingContext ctx, RpcRequestCommand cmd) throws Exception
AbstractRemotingProcessordoProcess 在类中 AbstractRemotingProcessor<RpcRequestCommand>ctx - RemotingContextcmd - TExceptionAbstractRemotingProcessor.doProcess(com.alipay.remoting.RemotingContext, com.alipay.remoting.RemotingCommand)public void sendResponseIfNecessary(RemotingContext ctx, byte type, RemotingCommand response)
ctx - remoting contexttype - type coderesponse - remoting commandCopyright © 2020. All rights reserved.