vertx / io.vertx.kotlin.coroutines / CoroutineVerticle

CoroutineVerticle

abstract class CoroutineVerticle : Verticle

A Verticle which run its start and stop methods in coroutine. You should subclass this class instead of AbstractVerticle to create any verticles that use vertx-kotlin-coroutine.

Author
Stream Liu

Constructors

<init>

CoroutineVerticle()

A Verticle which run its start and stop methods in coroutine. You should subclass this class instead of AbstractVerticle to create any verticles that use vertx-kotlin-coroutine.

Properties

config

val config: JsonObject

Get the configuration of the verticle.

context

lateinit var context: Context

deploymentID

val deploymentID: String

Get the deployment ID of the verticle deployment

processArgs

val processArgs: List<String>

Get the arguments used when deploying the Vert.x process.

Functions

getVertx

open fun getVertx(): Vertx

init

open fun init(vertx: Vertx, context: Context): Unit

start

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

Override this method in your verticle

stop

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

Override this method in your verticle