public class CommandRegistry extends CommandResolver
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<CommandRegistry> |
__TYPE_ARG |
Constructor and Description |
---|
CommandRegistry(CommandRegistry delegate) |
baseCommands, commands, getCommand, newInstance
public static final TypeArg<CommandRegistry> __TYPE_ARG
public CommandRegistry(CommandRegistry delegate)
public CommandRegistry getDelegate()
getDelegate
in class CommandResolver
public static CommandRegistry getShared(Vertx vertx)
vertx
- the vertx instancepublic static CommandRegistry create(Vertx vertx)
vertx
- the vertx instancepublic CommandRegistry registerCommand(Command command)
registerCommand(io.vertx.reactivex.ext.shell.command.Command)
, without a completion handler.command
- public CommandRegistry registerCommand(Command command, Handler<AsyncResult<Command>> completionHandler)
command
- the command to registercompletionHandler
- notified when the command is registeredpublic Single<Command> rxRegisterCommand(Command command)
command
- the command to registerpublic CommandRegistry registerCommands(List<Command> commands)
registerCommands(java.util.List<io.vertx.reactivex.ext.shell.command.Command>)
, without a completion handler.commands
- public CommandRegistry registerCommands(List<Command> commands, Handler<AsyncResult<List<Command>>> completionHandler)
commands
- the commands to registercompletionHandler
- notified when the command is registeredpublic Single<List<Command>> rxRegisterCommands(List<Command> commands)
commands
- the commands to registerpublic CommandRegistry unregisterCommand(String commandName)
unregisterCommand(java.lang.String)
, without a completion handler.commandName
- public CommandRegistry unregisterCommand(String commandName, Handler<AsyncResult<Void>> completionHandler)
commandName
- the command namecompletionHandler
- notified when the command is unregisteredpublic Completable rxUnregisterCommand(String commandName)
commandName
- the command namepublic static CommandRegistry newInstance(CommandRegistry arg)
Copyright © 2017. All rights reserved.