public interface CommandRegistry extends CommandResolver
baseCommands, commands, getCommand
static CommandRegistry getShared(Vertx vertx)
vertx
- the vertx instancestatic CommandRegistry create(Vertx vertx)
vertx
- the vertx instanceFuture<Command> registerCommand(Class<? extends AnnotatedCommand> command)
registerCommand(Class, Handler)
, without a completion handler.CommandRegistry registerCommand(Class<? extends AnnotatedCommand> command, Handler<AsyncResult<Command>> completionHandler)
command
- the class of the command to registercompletionHandler
- notified when the command is registeredFuture<Command> registerCommand(Command command)
registerCommand(Command, Handler)
, without a completion handler.CommandRegistry registerCommand(Command command, Handler<AsyncResult<Command>> completionHandler)
command
- the command to registercompletionHandler
- notified when the command is registeredFuture<List<Command>> registerCommands(List<Command> commands)
registerCommands(List, Handler)
, without a completion handler.CommandRegistry registerCommands(List<Command> commands, Handler<AsyncResult<List<Command>>> completionHandler)
commands
- the commands to registercompletionHandler
- notified when the command is registeredFuture<Void> unregisterCommand(String commandName)
unregisterCommand(String, Handler)
, without a completion handler.CommandRegistry unregisterCommand(String commandName, Handler<AsyncResult<Void>> completionHandler)
commandName
- the command namecompletionHandler
- notified when the command is unregisteredCopyright © 2023 Eclipse. All rights reserved.