public interface ShellService
ShellServiceOptions
configuration.
The shell service will expose commands using CommandResolver
on the classpath and
the shared command registry for the Vert.x instance.Modifier and Type | Method and Description |
---|---|
static ShellService |
create(Vertx vertx)
Like
create(Vertx, ShellServiceOptions) , with default options. |
static ShellService |
create(Vertx vertx,
ShellServiceOptions options)
Create a new shell service.
|
ShellServer |
server() |
default void |
start()
Start the shell service, this is an asynchronous start.
|
void |
start(Handler<AsyncResult<Void>> startHandler)
Start the shell service, this is an asynchronous start.
|
default void |
stop()
Stop the shell service, this is an asynchronous stop.
|
void |
stop(Handler<AsyncResult<Void>> stopHandler)
Stop the shell service, this is an asynchronous start.
|
static ShellService create(Vertx vertx)
create(Vertx, ShellServiceOptions)
, with default options.static ShellService create(Vertx vertx, ShellServiceOptions options)
vertx
- the Vert.x instanceoptions
- the service config optionsdefault void start()
void start(Handler<AsyncResult<Void>> startHandler)
startHandler
- handler for getting notified when service is startedShellServer server()
default void stop()
void stop(Handler<AsyncResult<Void>> stopHandler)
stopHandler
- handler for getting notified when service is stoppedCopyright © 2023 Eclipse. All rights reserved.