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(CommandRegistry delegate) |
CommandRegistry(Object delegate) |
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) |
CommandRegistry |
registerCommand(Command command)
Register a command
|
CommandRegistry |
registerCommand(Command command,
Handler<AsyncResult<Command>> completionHandler)
Register a command
|
CommandRegistry |
registerCommands(List<Command> commands)
Register a list of commands.
|
CommandRegistry |
registerCommands(List<Command> commands,
Handler<AsyncResult<List<Command>>> completionHandler)
Register a list of commands.
|
io.reactivex.Single<Command> |
rxRegisterCommand(Command command)
Register a command
|
io.reactivex.Single<List<Command>> |
rxRegisterCommands(List<Command> commands)
Register a list of commands.
|
io.reactivex.Completable |
rxUnregisterCommand(String commandName)
Unregister a command.
|
String |
toString() |
CommandRegistry |
unregisterCommand(String commandName)
Unregister a command.
|
CommandRegistry |
unregisterCommand(String commandName,
Handler<AsyncResult<Void>> completionHandler)
Unregister a command.
|
baseCommands, commands, getCommand, newInstance
public static final TypeArg<CommandRegistry> __TYPE_ARG
public CommandRegistry(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 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, Handler<AsyncResult<Command>> completionHandler)
command
- the command to registercompletionHandler
- notified when the command is registeredpublic CommandRegistry registerCommand(Command command)
command
- the command to registerpublic io.reactivex.Single<Command> rxRegisterCommand(Command command)
command
- the command to registerpublic CommandRegistry registerCommands(List<Command> commands, Handler<AsyncResult<List<Command>>> completionHandler)
commands
- the commands to registercompletionHandler
- notified when the command is registeredpublic CommandRegistry registerCommands(List<Command> commands)
commands
- the commands to registerpublic io.reactivex.Single<List<Command>> rxRegisterCommands(List<Command> commands)
commands
- the commands to registerpublic CommandRegistry unregisterCommand(String commandName, Handler<AsyncResult<Void>> completionHandler)
commandName
- the command namecompletionHandler
- notified when the command is unregisteredpublic CommandRegistry unregisterCommand(String commandName)
commandName
- the command namepublic io.reactivex.Completable rxUnregisterCommand(String commandName)
commandName
- the command namepublic static CommandRegistry newInstance(CommandRegistry arg)
Copyright © 2022 Eclipse. All rights reserved.