AbstractVerticle
insteadpublic class GroovyVerticle extends Object
Modifier and Type | Field and Description |
---|---|
protected Context |
context
Deprecated.
|
protected Vertx |
vertx
Deprecated.
|
Constructor and Description |
---|
GroovyVerticle()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Verticle |
asJavaVerticle()
Deprecated.
|
void |
start()
Deprecated.
If your verticle does a simple, synchronous start-up then override this method and put your start-up
code in there.
|
void |
start(Future<Void> startFuture)
Deprecated.
Start the verticle instance.
|
void |
stop()
Deprecated.
If your verticle has simple synchronous clean-up tasks to complete then override this method and put your clean-up
code in there.
|
void |
stop(Future<Void> stopFuture)
Deprecated.
Stop the verticle instance.
|
public void start() throws Exception
Exception
public void stop() throws Exception
Exception
public void start(Future<Void> startFuture) throws Exception
Vert.x calls this method when deploying the instance. You do not call it yourself.
A future is passed into the method, and when deployment is complete the verticle should either call
Future.complete(T)
or Future.fail(java.lang.Throwable)
the future.
startFuture
- the futureException
public void stop(Future<Void> stopFuture) throws Exception
Vert.x calls this method when un-deploying the instance. You do not call it yourself.
A future is passed into the method, and when un-deployment is complete the verticle should either call
Future.complete(T)
or Future.fail(java.lang.Throwable)
the future.
stopFuture
- the futureException
Copyright © 2017. All rights reserved.