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 Future<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 Future<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 optionsvoid start(Handler<AsyncResult<Void>> startHandler)
startHandler
- handler for getting notified when service is startedShellServer server()
void stop(Handler<AsyncResult<Void>> stopHandler)
stopHandler
- handler for getting notified when service is stoppedCopyright © 2022 Eclipse. All rights reserved.