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.rxjava.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 registered@Deprecated public Observable<Command> registerCommandObservable(Command command)
rxRegisterCommand(io.vertx.rxjava.ext.shell.command.Command)
insteadcommand
- the command to registerpublic Single<Command> rxRegisterCommand(Command command)
command
- the command to registerpublic CommandRegistry registerCommands(List<Command> commands)
registerCommands(java.util.List<io.vertx.rxjava.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 registered@Deprecated public Observable<List<Command>> registerCommandsObservable(List<Command> commands)
rxRegisterCommands(java.util.List<io.vertx.rxjava.ext.shell.command.Command>)
insteadcommands
- the commands to registerpublic 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 unregistered@Deprecated public Observable<Void> unregisterCommandObservable(String commandName)
rxUnregisterCommand(java.lang.String)
insteadcommandName
- the command namepublic Single<Void> rxUnregisterCommand(String commandName)
commandName
- the command namepublic static CommandRegistry newInstance(CommandRegistry arg)
Copyright © 2017. All rights reserved.