Class CommandRegistry
- java.lang.Object
-
- io.vertx.reactivex.ext.shell.command.CommandResolver
-
- io.vertx.reactivex.ext.shell.command.CommandRegistry
-
public class CommandRegistry extends CommandResolver
A registry that contains the commands known by a shell. It is a mutable command resolver. NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<CommandRegistry>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description CommandRegistry(CommandRegistry delegate)CommandRegistry(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommandRegistrycreate(Vertx vertx)Create a new registry.booleanequals(Object o)CommandRegistrygetDelegate()static CommandRegistrygetShared(Vertx vertx)Get the shared registry for the Vert.x instance.inthashCode()static CommandRegistrynewInstance(CommandRegistry arg)CommandRegistryregisterCommand(Command command)Register a commandCommandRegistryregisterCommand(Command command, Handler<AsyncResult<Command>> completionHandler)Register a commandCommandRegistryregisterCommands(List<Command> commands)Register a list of commands.CommandRegistryregisterCommands(List<Command> commands, Handler<AsyncResult<List<Command>>> completionHandler)Register a list of commands.io.reactivex.Single<Command>rxRegisterCommand(Command command)Register a commandio.reactivex.Single<List<Command>>rxRegisterCommands(List<Command> commands)Register a list of commands.io.reactivex.CompletablerxUnregisterCommand(String commandName)Unregister a command.StringtoString()CommandRegistryunregisterCommand(String commandName)Unregister a command.CommandRegistryunregisterCommand(String commandName, Handler<AsyncResult<Void>> completionHandler)Unregister a command.-
Methods inherited from class io.vertx.reactivex.ext.shell.command.CommandResolver
baseCommands, commands, getCommand, newInstance
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<CommandRegistry> __TYPE_ARG
-
-
Constructor Detail
-
CommandRegistry
public CommandRegistry(CommandRegistry delegate)
-
CommandRegistry
public CommandRegistry(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classCommandResolver
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCommandResolver
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCommandResolver
-
getDelegate
public CommandRegistry getDelegate()
- Overrides:
getDelegatein classCommandResolver
-
getShared
public static CommandRegistry getShared(Vertx vertx)
Get the shared registry for the Vert.x instance.- Parameters:
vertx- the vertx instance- Returns:
- the shared registry
-
create
public static CommandRegistry create(Vertx vertx)
Create a new registry.- Parameters:
vertx- the vertx instance- Returns:
- the created registry
-
registerCommand
public CommandRegistry registerCommand(Command command, Handler<AsyncResult<Command>> completionHandler)
Register a command- Parameters:
command- the command to registercompletionHandler- notified when the command is registered- Returns:
- a reference to this, so the API can be used fluently
-
registerCommand
public CommandRegistry registerCommand(Command command)
Register a command- Parameters:
command- the command to register- Returns:
- a reference to this, so the API can be used fluently
-
rxRegisterCommand
public io.reactivex.Single<Command> rxRegisterCommand(Command command)
Register a command- Parameters:
command- the command to register- Returns:
- a reference to this, so the API can be used fluently
-
registerCommands
public CommandRegistry registerCommands(List<Command> commands, Handler<AsyncResult<List<Command>>> completionHandler)
Register a list of commands.- Parameters:
commands- the commands to registercompletionHandler- notified when the command is registered- Returns:
- a reference to this, so the API can be used fluently
-
registerCommands
public CommandRegistry registerCommands(List<Command> commands)
Register a list of commands.- Parameters:
commands- the commands to register- Returns:
- a reference to this, so the API can be used fluently
-
rxRegisterCommands
public io.reactivex.Single<List<Command>> rxRegisterCommands(List<Command> commands)
Register a list of commands.- Parameters:
commands- the commands to register- Returns:
- a reference to this, so the API can be used fluently
-
unregisterCommand
public CommandRegistry unregisterCommand(String commandName, Handler<AsyncResult<Void>> completionHandler)
Unregister a command.- Parameters:
commandName- the command namecompletionHandler- notified when the command is unregistered- Returns:
- a reference to this, so the API can be used fluently
-
unregisterCommand
public CommandRegistry unregisterCommand(String commandName)
Unregister a command.- Parameters:
commandName- the command name- Returns:
- a reference to this, so the API can be used fluently
-
rxUnregisterCommand
public io.reactivex.Completable rxUnregisterCommand(String commandName)
Unregister a command.- Parameters:
commandName- the command name- Returns:
- a reference to this, so the API can be used fluently
-
newInstance
public static CommandRegistry newInstance(CommandRegistry arg)
-
-