vertx / io.vertx.ext.sync / SyncVerticle

SyncVerticle

abstract class SyncVerticle : AbstractVerticle

A `Verticle` which runs its `start` and `stop` methods using fibers. You should subclass this class instead of `AbstractVerticle` to create any verticles that use vertx-sync.

Author
Tim Fox

Constructors

<init>

SyncVerticle()

A `Verticle` which runs its `start` and `stop` methods using fibers. You should subclass this class instead of `AbstractVerticle` to create any verticles that use vertx-sync.

Functions

start

open fun start(startFuture: Future<Void>): Unitopen fun start(): Unit

Override this method in your verticle

stop

open fun stop(stopFuture: Future<Void>): Unitopen fun stop(): Unit

Optionally override this method in your verticle if you have cleanup to do