public class RpcRequestProcessor extends AbstractRemotingProcessor<RpcRequestCommand>
| Constructor and Description |
|---|
RpcRequestProcessor()
Default constructor.
|
RpcRequestProcessor(CommandFactory commandFactory)
Constructor.
|
RpcRequestProcessor(ExecutorService executor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 in interface RemotingProcessor<RpcRequestCommand>process in class 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 in class 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 © 2024. All rights reserved.