|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alipay.remoting.AbstractRemotingProcessor<T>
T - public abstract class AbstractRemotingProcessor<T extends RemotingCommand>
Processor to process remoting command.
| Constructor Summary | |
|---|---|
AbstractRemotingProcessor()
Default constructor. |
|
AbstractRemotingProcessor(CommandFactory commandFactory)
Constructor. |
|
AbstractRemotingProcessor(CommandFactory commandFactory,
ExecutorService executor)
Constructor. |
|
AbstractRemotingProcessor(ExecutorService executor)
Constructor. |
|
| Method Summary | |
|---|---|
abstract void |
doProcess(RemotingContext ctx,
T msg)
Do the process. |
CommandFactory |
getCommandFactory()
|
ExecutorService |
getExecutor()
Getter method for property executor. |
void |
process(RemotingContext ctx,
T msg,
ExecutorService defaultExecutor)
Process the remoting command with its own executor or with the defaultExecutor if its own if null. |
void |
setCommandFactory(CommandFactory commandFactory)
|
void |
setExecutor(ExecutorService executor)
Setter method for property executor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRemotingProcessor()
public AbstractRemotingProcessor(CommandFactory commandFactory)
public AbstractRemotingProcessor(ExecutorService executor)
executor -
public AbstractRemotingProcessor(CommandFactory commandFactory,
ExecutorService executor)
executor - | Method Detail |
|---|
public abstract void doProcess(RemotingContext ctx,
T msg)
throws Exception
ctx - msg -
Exception
public void process(RemotingContext ctx,
T msg,
ExecutorService defaultExecutor)
throws Exception
process in interface RemotingProcessor<T extends RemotingCommand>ctx - msg - defaultExecutor -
Exceptionpublic ExecutorService getExecutor()
getExecutor in interface RemotingProcessor<T extends RemotingCommand>public void setExecutor(ExecutorService executor)
setExecutor in interface RemotingProcessor<T extends RemotingCommand>executor - value to be assigned to property executorpublic CommandFactory getCommandFactory()
public void setCommandFactory(CommandFactory commandFactory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||