Class CommandRegistry
- All Implemented Interfaces:
MutinyDelegate
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommandRegistry
(io.vertx.ext.shell.command.CommandRegistry delegate) CommandRegistry
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandRegistry
boolean
io.vertx.ext.shell.command.CommandRegistry
static CommandRegistry
int
hashCode()
static CommandRegistry
newInstance
(io.vertx.ext.shell.command.CommandRegistry arg) io.smallrye.mutiny.Uni<Command>
registerCommand
(Command command) Register a commandregisterCommandAndAwait
(Command command) Blocking variant ofregisterCommand(io.vertx.mutiny.ext.shell.command.Command)
.registerCommandAndForget
(Command command) Variant ofregisterCommand(io.vertx.mutiny.ext.shell.command.Command)
that ignores the result of the operation.registerCommands
(List<Command> commands) Register a list of commands.registerCommandsAndAwait
(List<Command> commands) Blocking variant ofregisterCommands(List)
.registerCommandsAndForget
(List<Command> commands) Variant ofregisterCommands(List)
that ignores the result of the operation.toString()
io.smallrye.mutiny.Uni<Void>
unregisterCommand
(String commandName) Unregister a command.unregisterCommandAndAwait
(String commandName) Blocking variant ofunregisterCommand(String)
.unregisterCommandAndForget
(String commandName) Variant ofunregisterCommand(String)
that ignores the result of the operation.Methods inherited from class io.vertx.mutiny.ext.shell.command.CommandResolver
baseCommands, commands, getCommand, newInstance
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
CommandRegistry
public CommandRegistry(io.vertx.ext.shell.command.CommandRegistry delegate) -
CommandRegistry
-
-
Method Details
-
getDelegate
public io.vertx.ext.shell.command.CommandRegistry getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Overrides:
getDelegate
in classCommandResolver
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toString
in classCommandResolver
-
equals
- Overrides:
equals
in classCommandResolver
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCommandResolver
-
create
- Parameters:
vertx
- the vertx instance- Returns:
- the created registry
-
registerCommand
Register a commandUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
command
- the command to register- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
registerCommandAndAwait
Blocking variant ofregisterCommand(io.vertx.mutiny.ext.shell.command.Command)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
command
- the command to register- Returns:
- the Command instance produced by the operation.
-
registerCommandAndForget
Variant ofregisterCommand(io.vertx.mutiny.ext.shell.command.Command)
that ignores the result of the operation.This method subscribes on the result of
registerCommand(io.vertx.mutiny.ext.shell.command.Command)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromregisterCommand(io.vertx.mutiny.ext.shell.command.Command)
but you don't need to compose it with other operations.- Parameters:
command
- the command to register- Returns:
- the instance of CommandRegistry to chain method calls.
-
registerCommands
@CheckReturnValue public io.smallrye.mutiny.Uni<List<Command>> registerCommands(List<Command> commands) Register a list of commands.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
commands
- the commands to register- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
registerCommandsAndAwait
Blocking variant ofregisterCommands(List)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
commands
- the commands to register- Returns:
- the List
instance produced by the operation.
-
registerCommandsAndForget
Variant ofregisterCommands(List)
that ignores the result of the operation.This method subscribes on the result of
registerCommands(List)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromregisterCommands(List)
but you don't need to compose it with other operations.- Parameters:
commands
- the commands to register- Returns:
- the instance of CommandRegistry to chain method calls.
-
unregisterCommand
Unregister a command.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
commandName
- the command name- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
unregisterCommandAndAwait
Blocking variant ofunregisterCommand(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
commandName
- the command name- Returns:
- the Void instance produced by the operation.
-
unregisterCommandAndForget
Variant ofunregisterCommand(String)
that ignores the result of the operation.This method subscribes on the result of
unregisterCommand(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromunregisterCommand(String)
but you don't need to compose it with other operations.- Parameters:
commandName
- the command name- Returns:
- the instance of CommandRegistry to chain method calls.
-
newInstance
-