public class CommandRegistry extends CommandResolver
original
non RX-ified interface using Vert.x codegen.Constructor and Description |
---|
CommandRegistry(CommandRegistry delegate) |
Modifier and Type | Method and Description |
---|---|
static CommandRegistry |
create(Vertx vertx)
Create a new registry.
|
Object |
getDelegate() |
static CommandRegistry |
getShared(Vertx vertx)
Get the shared registry for the Vert.x instance.
|
static CommandRegistry |
newInstance(CommandRegistry arg) |
CommandRegistry |
registerCommand(Command command)
Like
registerCommand(io.vertx.rxjava.ext.shell.command.Command) , without a completion handler. |
CommandRegistry |
registerCommand(Command command,
Handler<AsyncResult<Command>> completionHandler)
Register a command
|
rx.Observable<Command> |
registerCommandObservable(Command command)
Register a command
|
CommandRegistry |
registerCommands(List<Command> commands)
Like
CommandRegistry , without a completion handler. |
CommandRegistry |
registerCommands(List<Command> commands,
Handler<AsyncResult<List<Command>>> completionHandler)
Register a list of commands.
|
rx.Observable<List<Command>> |
registerCommandsObservable(List<Command> commands)
Register a list of commands.
|
CommandRegistry |
unregisterCommand(String commandName)
Like
CommandRegistry , without a completion handler. |
CommandRegistry |
unregisterCommand(String commandName,
Handler<AsyncResult<Void>> completionHandler)
Unregister a command.
|
rx.Observable<Void> |
unregisterCommandObservable(String commandName)
Unregister a command.
|
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 rx.Observable<Command> registerCommandObservable(Command command)
command
- the command to registerpublic CommandRegistry registerCommands(List<Command> commands)
CommandRegistry
, 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 rx.Observable<List<Command>> registerCommandsObservable(List<Command> commands)
commands
- the commands to registerpublic CommandRegistry unregisterCommand(String commandName)
CommandRegistry
, without a completion handler.commandName
- public CommandRegistry unregisterCommand(String commandName, Handler<AsyncResult<Void>> completionHandler)
commandName
- the command namecompletionHandler
- notified when the command is unregisteredpublic rx.Observable<Void> unregisterCommandObservable(String commandName)
commandName
- the command namepublic static CommandRegistry newInstance(CommandRegistry arg)
Copyright © 2015. All rights reserved.