public abstract class SyncVerticle extends AbstractVerticle
| Modifier and Type | Field and Description |
|---|---|
protected co.paralleluniverse.fibers.FiberScheduler |
instanceScheduler |
context, vertx| Constructor and Description |
|---|
SyncVerticle() |
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Override this method in your verticle
|
void |
start(Promise<Void> startFuture)
Start the verticle instance.
|
void |
stop()
Optionally override this method in your verticle if you have cleanup to do
|
void |
stop(Promise<Void> stopFuture)
Stop the verticle instance.
|
config, deploymentID, getVertx, init, processArgs, start, stopprotected co.paralleluniverse.fibers.FiberScheduler instanceScheduler
public void start(Promise<Void> startFuture) throws Exception
VerticleVert.x calls this method when deploying the instance. You do not call it yourself.
A promise is passed into the method, and when deployment is complete the verticle should either call
Promise.complete(T) or Promise.fail(java.lang.Throwable) the future.
startFuture - the futureExceptionpublic void stop(Promise<Void> stopFuture) throws Exception
VerticleVert.x calls this method when un-deploying the instance. You do not call it yourself.
A promise is passed into the method, and when un-deployment is complete the verticle should either call
Promise.complete(T) or Promise.fail(java.lang.Throwable) the future.
stopFuture - the futureException@Suspendable
public void start()
throws Exception
start in class AbstractVerticleException@Suspendable
public void stop()
throws Exception
stop in class AbstractVerticleExceptionCopyright © 2021 Eclipse. All rights reserved.