vertx / io.vertx.reactivex.ext.shell.command / CommandRegistry

CommandRegistry

open class CommandRegistry : 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 io.vertx.ext.shell.command.CommandRegistry non RX-ified interface using Vert.x codegen.

Constructors

<init>

CommandRegistry(delegate: CommandRegistry)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<CommandRegistry>

Functions

create

open static fun create(vertx: Vertx): CommandRegistry

Create a new registry.

equals

open fun equals(other: Any?): Boolean

getDelegate

open fun getDelegate(): CommandRegistry

getShared

open static fun getShared(vertx: Vertx): CommandRegistry

Get the shared registry for the Vert.x instance.

hashCode

open fun hashCode(): Int

newInstance

open static fun newInstance(arg: CommandRegistry): CommandRegistry

registerCommand

open fun registerCommand(command: Command): CommandRegistry

Like io.vertx.reactivex.ext.shell.command.CommandRegistry#registerCommand, without a completion handler.

open fun registerCommand(command: Command, completionHandler: Handler<AsyncResult<Command>>): CommandRegistry

Register a command

registerCommands

open fun registerCommands(commands: MutableList<Command>): CommandRegistry

Like io.vertx.reactivex.ext.shell.command.CommandRegistry#registerCommands, without a completion handler.

open fun registerCommands(commands: MutableList<Command>, completionHandler: Handler<AsyncResult<MutableList<Command>>>): CommandRegistry

Register a list of commands.

rxRegisterCommand

open fun rxRegisterCommand(command: Command): Single<Command>

Register a command

rxRegisterCommands

open fun rxRegisterCommands(commands: MutableList<Command>): Single<MutableList<Command>>

Register a list of commands.

rxUnregisterCommand

open fun rxUnregisterCommand(commandName: String): Completable

Unregister a command.

toString

open fun toString(): String

unregisterCommand

open fun unregisterCommand(commandName: String): CommandRegistry

Like io.vertx.reactivex.ext.shell.command.CommandRegistry#unregisterCommand, without a completion handler.

open fun unregisterCommand(commandName: String, completionHandler: Handler<AsyncResult<Void>>): CommandRegistry

Unregister a command.