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.rxjava.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
|
rx.Observable<Command> |
registerCommandObservable(Command command)
Deprecated.
|
CommandRegistry |
registerCommands(List<Command> commands)
Like
registerCommands(java.util.List<io.vertx.rxjava.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.
|
rx.Observable<List<Command>> |
registerCommandsObservable(List<Command> commands)
Deprecated.
|
rx.Single<Command> |
rxRegisterCommand(Command command)
Register a command
|
rx.Single<List<Command>> |
rxRegisterCommands(List<Command> commands)
Register a list of commands.
|
rx.Single<Void> |
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.
|
rx.Observable<Void> |
unregisterCommandObservable(String commandName)
Deprecated.
use
rxUnregisterCommand(java.lang.String) instead |
baseCommands, commands, getCommand, newInstance
public 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 CommandResolver
public boolean equals(Object o)
equals
in class CommandResolver
public int hashCode()
hashCode
in class CommandResolver
public io.vertx.ext.shell.command.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, io.vertx.core.Handler<io.vertx.core.AsyncResult<Command>> completionHandler)
command
- the command to registercompletionHandler
- notified when the command is registered@Deprecated public rx.Observable<Command> registerCommandObservable(Command command)
rxRegisterCommand(io.vertx.rxjava.ext.shell.command.Command)
insteadcommand
- the command to registerpublic rx.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, io.vertx.core.Handler<io.vertx.core.AsyncResult<List<Command>>> completionHandler)
commands
- the commands to registercompletionHandler
- notified when the command is registered@Deprecated public rx.Observable<List<Command>> registerCommandsObservable(List<Command> commands)
rxRegisterCommands(java.util.List<io.vertx.rxjava.ext.shell.command.Command>)
insteadcommands
- the commands to registerpublic rx.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 unregistered@Deprecated public rx.Observable<Void> unregisterCommandObservable(String commandName)
rxUnregisterCommand(java.lang.String)
insteadcommandName
- the command namepublic rx.Single<Void> rxUnregisterCommand(String commandName)
commandName
- the command namepublic static CommandRegistry newInstance(io.vertx.ext.shell.command.CommandRegistry arg)
Copyright © 2022 Eclipse. All rights reserved.