@Deprecated public abstract class SyncVerticle extends AbstractVerticle
| Modifier and Type | Field and Description |
|---|---|
protected co.paralleluniverse.fibers.FiberScheduler |
instanceScheduler
Deprecated.
|
context, vertx| Constructor and Description |
|---|
SyncVerticle()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Deprecated.
Override this method in your verticle
|
void |
start(Promise<Void> startFuture)
Deprecated.
Start the verticle.
|
void |
stop()
Deprecated.
Optionally override this method in your verticle if you have cleanup to do
|
void |
stop(Promise<Void> stopFuture)
Deprecated.
Stop the verticle.
|
config, deploymentID, getVertx, init, processArgsprotected co.paralleluniverse.fibers.FiberScheduler instanceScheduler
public void start(Promise<Void> startFuture) throws Exception
AbstractVerticleThis 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 Verticlestart in class AbstractVerticlestartFuture - a promise which should be called when verticle start-up is complete.Exceptionpublic void stop(Promise<Void> stopFuture) throws Exception
AbstractVerticleThis 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 Verticlestop in class AbstractVerticlestopFuture - a promise which should be called when verticle clean-up is complete.Exception@Suspendable
public void start()
throws Exception
start in class AbstractVerticleException@Suspendable
public void stop()
throws Exception
stop in class AbstractVerticleExceptionCopyright © 2023 Eclipse. All rights reserved.