io.vertx.rxjava3.ext.shell.command

## Class CommandRegistry

- java.lang.Object
- - io.vertx.rxjava3.ext.shell.command.CommandResolver
  - - io.vertx.rxjava3.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 the `original` non RX-ified interface using Vert.x codegen.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static io.vertx.lang.rx.TypeArg<CommandRegistry>` | `__TYPE_ARG`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CommandRegistry(CommandRegistry delegate)`
    `CommandRegistry(Object delegate)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static CommandRegistry` | `create(Vertx vertx)` Create a new registry.
    `boolean` | `equals(Object o)`
    `CommandRegistry` | `getDelegate()`
    `static CommandRegistry` | `getShared(Vertx vertx)` Get the shared registry for the Vert.x instance.
    `int` | `hashCode()`
    `static CommandRegistry` | `newInstance(CommandRegistry arg)`
    `Single<Command>` | `registerCommand(Command command)` Register a command
    `Single<List<Command>>` | `registerCommands(List<Command> commands)` Register a list of commands.
    `Single<Command>` | `rxRegisterCommand(Command command)` Register a command
    `Single<List<Command>>` | `rxRegisterCommands(List<Command> commands)` Register a list of commands.
    `Completable` | `rxUnregisterCommand(String commandName)` Unregister a command.
    `String` | `toString()`
    `Completable` | `unregisterCommand(String commandName)` Unregister a command.

    - ### Methods inherited from class io.vertx.rxjava3.ext.shell.command.CommandResolver

      `baseCommands, commands, getCommand, newInstance`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final io.vertx.lang.rx.TypeArg<CommandRegistry> __TYPE_ARG

  - ### Constructor Detail

    - #### CommandRegistry

          public CommandRegistry(CommandRegistry delegate)

    - #### CommandRegistry

          public CommandRegistry(Object delegate)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `CommandResolver`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `CommandResolver`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `CommandResolver`

    - #### getDelegate

          public CommandRegistry getDelegate()

      Overrides:
        `getDelegate` in class `CommandResolver`

    - #### 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 Single<Command> 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 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 Single<List<Command>> 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 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 Completable 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 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)

Copyright © 2022 Eclipse. All rights reserved.