public interface CommandHandler
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void handleCommand(RemotingContext ctx, Object msg) throws Exception
ctx - msg - Exceptionvoid registerProcessor(CommandCode cmd, RemotingProcessor<?> processor)
cmd - processor - void registerDefaultExecutor(ExecutorService executor)
executor - ExecutorService getDefaultExecutor()
Copyright © 2021. All rights reserved.