public class ScriptVerticle extends AbstractVerticle
context, vertx
Constructor and Description |
---|
ScriptVerticle(Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
void |
start(Future<Void> startFuture)
Start the verticle.
|
void |
stop(Future<Void> stopFuture)
Stop the verticle.
|
config, deploymentID, getVertx, init, processArgs, start, stop
public ScriptVerticle(Class<?> clazz)
public void start(Future<Void> startFuture) throws Exception
AbstractVerticle
This is called by Vert.x when the verticle instance is deployed. Don't call it yourself.
If your verticle does things in its startup which take some time then you can override this method and call the startFuture some time later when start up is complete.
start
in interface Verticle
start
in class AbstractVerticle
startFuture
- a future which should be called when verticle start-up is complete.Exception
public void stop(Future<Void> stopFuture) throws Exception
AbstractVerticle
This is called by Vert.x when the verticle instance is un-deployed. Don't call it yourself.
If your verticle does things in its shut-down which take some time then you can override this method and call the stopFuture some time later when clean-up is complete.
stop
in interface Verticle
stop
in class AbstractVerticle
stopFuture
- a future which should be called when verticle clean-up is complete.Exception
Copyright © 2020 Eclipse. All rights reserved.