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
AbstractRemotingProcessorpublic void doProcess(RemotingContext ctx, RpcRequestCommand cmd) throws Exception
AbstractRemotingProcessorpublic void sendResponseIfNecessary(RemotingContext ctx, byte type, RemotingCommand response)
ctx - remoting contexttype - type coderesponse - remoting commandCopyright © 2021. All rights reserved.