|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alipay.remoting.AbstractRemotingProcessor<RpcRequestCommand>
com.alipay.remoting.rpc.protocol.RpcRequestProcessor
public class RpcRequestProcessor
Process Rpc request.
| Constructor Summary | |
|---|---|
RpcRequestProcessor()
Default constructor. |
|
RpcRequestProcessor(CommandFactory commandFactory)
Constructor. |
|
RpcRequestProcessor(ExecutorService executor)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.alipay.remoting.AbstractRemotingProcessor |
|---|
getCommandFactory, getExecutor, setCommandFactory, setExecutor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RpcRequestProcessor()
public RpcRequestProcessor(CommandFactory commandFactory)
public RpcRequestProcessor(ExecutorService executor)
executor - | Method Detail |
|---|
public void process(RemotingContext ctx,
RpcRequestCommand cmd,
ExecutorService defaultExecutor)
throws Exception
AbstractRemotingProcessor
process in interface RemotingProcessor<RpcRequestCommand>process in class AbstractRemotingProcessor<RpcRequestCommand>ExceptionAbstractRemotingProcessor.process(com.alipay.remoting.RemotingContext, com.alipay.remoting.RemotingCommand, java.util.concurrent.ExecutorService)
public void doProcess(RemotingContext ctx,
RpcRequestCommand cmd)
throws Exception
AbstractRemotingProcessor
doProcess in class AbstractRemotingProcessor<RpcRequestCommand>ExceptionAbstractRemotingProcessor.doProcess(com.alipay.remoting.RemotingContext, com.alipay.remoting.RemotingCommand)
public void sendResponseIfNecessary(RemotingContext ctx,
byte type,
RemotingCommand response)
ctx - response -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||