@ChannelHandler.Sharable public class RpcCommandHandler extends Object implements CommandHandler
| Constructor and Description |
|---|
RpcCommandHandler(CommandFactory commandFactory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
getDefaultExecutor()
Get default executor for the handler.
|
void |
handleCommand(RemotingContext ctx,
Object msg)
Handle the command.
|
void |
registerDefaultExecutor(ExecutorService executor)
Register default executor for the handler.
|
void |
registerProcessor(CommandCode cmd,
RemotingProcessor processor)
Register processor for command with specified code.
|
public RpcCommandHandler(CommandFactory commandFactory)
public void handleCommand(RemotingContext ctx, Object msg) throws Exception
CommandHandlerhandleCommand in interface CommandHandlerExceptionCommandHandler.handleCommand(RemotingContext, Object)public void registerProcessor(CommandCode cmd, RemotingProcessor processor)
CommandHandlerregisterProcessor in interface CommandHandlerCommandHandler.registerProcessor(com.alipay.remoting.CommandCode, RemotingProcessor)public void registerDefaultExecutor(ExecutorService executor)
CommandHandlerregisterDefaultExecutor in interface CommandHandlerCommandHandler.registerDefaultExecutor(java.util.concurrent.ExecutorService)public ExecutorService getDefaultExecutor()
CommandHandlergetDefaultExecutor in interface CommandHandlerCommandHandler.getDefaultExecutor()Copyright © 2024. All rights reserved.