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
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. |
val config: JsonObject
Get the configuration of the verticle. |
|
lateinit var context: Context |
|
val deploymentID: String
Get the deployment ID of the verticle deployment |
|
val processArgs: List<String>
Get the arguments used when deploying the Vert.x process. |
open fun getVertx(): Vertx |
|
open fun init(vertx: Vertx, context: Context): Unit |
|
open fun start(startFuture: Future<Void>?): Unitopen suspend fun start(): Unit
Override this method in your verticle |
|
open fun stop(stopFuture: Future<Void>?): Unitopen suspend fun stop(): Unit
Override this method in your verticle |