public class CommandRegistry extends CommandResolver
original
non RX-ified interface using Vert.x codegen.Constructor and Description |
---|
CommandRegistry(CommandRegistry delegate) |
baseCommands, commands, getCommand, newInstance
public CommandRegistry(CommandRegistry delegate)
public Object 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 registeredpublic Observable<Command> registerCommandObservable(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 registeredpublic Observable<List<Command>> registerCommandsObservable(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 Observable<Void> unregisterCommandObservable(String commandName)
commandName
- the command namepublic static CommandRegistry newInstance(CommandRegistry arg)
Copyright © 2016. All rights reserved.