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, stop
protected co.paralleluniverse.fibers.FiberScheduler instanceScheduler
public void start(Promise<Void> startFuture) throws Exception
Verticle
Vert.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 futureException
public void stop(Promise<Void> stopFuture) throws Exception
Verticle
Vert.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 AbstractVerticle
Exception
@Suspendable public void stop() throws Exception
stop
in class AbstractVerticle
Exception
Copyright © 2023 Eclipse. All rights reserved.