public abstract class Verticle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Container |
container
A reference to the vert.x container
|
protected Vertx |
vertx
A reference to the vert.x runtime
|
Constructor and Description |
---|
Verticle() |
Modifier and Type | Method and Description |
---|---|
Container |
getContainer() |
Vertx |
getVertx() |
void |
setContainer(Container container)
Inject the container
|
void |
setVertx(Vertx vertx)
Inject vertx
|
abstract void |
start()
Vert.x calls the start method when the verticle is deployed
|
void |
stop()
Vert.x calls the stop method when the verticle is undeployed.
|
protected Vertx vertx
protected Container container
public Container getContainer()
public void setContainer(Container container)
public Vertx getVertx()
public void setVertx(Vertx vertx)
public abstract void start() throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
java.lang.Exception