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(io.vertx.ext.shell.command.CommandRegistry delegate) |
CommandRegistry(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
static CommandRegistry |
create(Vertx vertx)
Create a new registry.
|
boolean |
equals(Object o) |
io.vertx.ext.shell.command.CommandRegistry |
getDelegate() |
static CommandRegistry |
getShared(Vertx vertx)
Get the shared registry for the Vert.x instance.
|
int |
hashCode() |
static CommandRegistry |
newInstance(io.vertx.ext.shell.command.CommandRegistry arg) |
CommandRegistry |
registerCommand(Command command)
Like
registerCommand(io.vertx.reactivex.ext.shell.command.Command), without a completion handler. |
CommandRegistry |
registerCommand(Command command,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Command>> completionHandler)
Register a command
|
CommandRegistry |
registerCommands(List<Command> commands)
Like
registerCommands(java.util.List<io.vertx.reactivex.ext.shell.command.Command>), without a completion handler. |
CommandRegistry |
registerCommands(List<Command> commands,
io.vertx.core.Handler<io.vertx.core.AsyncResult<List<Command>>> completionHandler)
Register a list of commands.
|
io.reactivex.Single<Command> |
rxRegisterCommand(Command command)
Register a command
|
io.reactivex.Single<List<Command>> |
rxRegisterCommands(List<Command> commands)
Register a list of commands.
|
io.reactivex.Completable |
rxUnregisterCommand(String commandName)
Unregister a command.
|
String |
toString() |
CommandRegistry |
unregisterCommand(String commandName)
Like
unregisterCommand(java.lang.String), without a completion handler. |
CommandRegistry |
unregisterCommand(String commandName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Unregister a command.
|
baseCommands, commands, getCommand, newInstancepublic static final TypeArg<CommandRegistry> __TYPE_ARG
public CommandRegistry(io.vertx.ext.shell.command.CommandRegistry delegate)
public CommandRegistry(Object delegate)
public String toString()
toString in class CommandResolverpublic boolean equals(Object o)
equals in class CommandResolverpublic int hashCode()
hashCode in class CommandResolverpublic io.vertx.ext.shell.command.CommandRegistry getDelegate()
getDelegate in class CommandResolverpublic 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, io.vertx.core.Handler<io.vertx.core.AsyncResult<Command>> completionHandler)
command - the command to registercompletionHandler - notified when the command is registeredpublic io.reactivex.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, io.vertx.core.Handler<io.vertx.core.AsyncResult<List<Command>>> completionHandler)
commands - the commands to registercompletionHandler - notified when the command is registeredpublic io.reactivex.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, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
commandName - the command namecompletionHandler - notified when the command is unregisteredpublic io.reactivex.Completable rxUnregisterCommand(String commandName)
commandName - the command namepublic static CommandRegistry newInstance(io.vertx.ext.shell.command.CommandRegistry arg)
Copyright © 2022 Eclipse. All rights reserved.