public interface CommandHandler
| 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.
|
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 © 2024. All rights reserved.