T - public abstract class AbstractRemotingProcessor<T extends RemotingCommand> extends Object implements RemotingProcessor<T>
| 构造器和说明 |
|---|
AbstractRemotingProcessor()
Default constructor.
|
AbstractRemotingProcessor(CommandFactory commandFactory)
Constructor.
|
AbstractRemotingProcessor(CommandFactory commandFactory,
ExecutorService executor)
Constructor.
|
AbstractRemotingProcessor(ExecutorService executor)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public AbstractRemotingProcessor()
public AbstractRemotingProcessor(CommandFactory commandFactory)
public AbstractRemotingProcessor(ExecutorService executor)
executor - public AbstractRemotingProcessor(CommandFactory commandFactory, ExecutorService executor)
executor - public abstract void doProcess(RemotingContext ctx, T msg) throws Exception
ctx - msg - Exceptionpublic void process(RemotingContext ctx, T msg, ExecutorService defaultExecutor) throws Exception
process 在接口中 RemotingProcessor<T extends RemotingCommand>ctx - msg - defaultExecutor - Exceptionpublic ExecutorService getExecutor()
getExecutor 在接口中 RemotingProcessor<T extends RemotingCommand>public void setExecutor(ExecutorService executor)
setExecutor 在接口中 RemotingProcessor<T extends RemotingCommand>executor - value to be assigned to property executorpublic CommandFactory getCommandFactory()
public void setCommandFactory(CommandFactory commandFactory)
Copyright © 2021. All rights reserved.