public interface VertxLifecycleHooks
| Modifier and Type | Method and Description |
|---|---|
void |
afterConfigParsed(JsonObject config)
Hook for sub-classes of the
Launcher class before the vertx instance is started. |
void |
afterStartingVertx(Vertx vertx)
Hook for sub-classes of the
Launcher class after the vertx instance is started. |
void |
afterStoppingVertx()
|
void |
beforeDeployingVerticle(DeploymentOptions deploymentOptions)
Hook for sub classes of the
Launcher class before the verticle is deployed. |
void |
beforeStartingVertx(VertxOptions options)
Hook for sub-classes of the
Launcher class before the vertx instance is started. |
void |
beforeStoppingVertx(Vertx vertx)
|
void |
handleDeployFailed(Vertx vertx,
String mainVerticle,
DeploymentOptions deploymentOptions,
Throwable cause)
A deployment failure has been encountered.
|
void afterConfigParsed(JsonObject config)
Launcher class before the vertx instance is started. Options
can still be updated.config - the json config file passed via -conf on the command line, an empty json object is not set.void beforeStartingVertx(VertxOptions options)
Launcher class before the vertx instance is started. Options
can still be updated.options - the vert.x optionsvoid afterStartingVertx(Vertx vertx)
Launcher class after the vertx instance is started.vertx - the vert.x instancevoid beforeDeployingVerticle(DeploymentOptions deploymentOptions)
Launcher class before the verticle is deployed. Deployment
options can still be updated.deploymentOptions - the deployment optionsvoid beforeStoppingVertx(Vertx vertx)
Launcher class called before the Vertx instance is
terminated. The hook is called during the Vertx.close() method.vertx - the Vertx instance, cannot be nullvoid afterStoppingVertx()
Launcher class called after the Vertx instance has been
terminated. The hook is called after the Vertx.close() method.void handleDeployFailed(Vertx vertx, String mainVerticle, DeploymentOptions deploymentOptions, Throwable cause)
vertx - the vert.x instancemainVerticle - the main verticle namedeploymentOptions - the deployment optionscause - the causeCopyright © 2020. All rights reserved.