class Relayer : CoroutineScope
(source)
Relays messages between two endpoints, with an interceptor reading passed messages.
bind
- the endpoint to bind to
interceptor
- the interceptor function consuming messages being relayed
coroutineContext
- the coroutine context of the relayer
Relayer(vertx: Vertx, bind: String, to: String, interceptor: (Message) -> Unit, coroutineContext: CoroutineContext = Dispatchers.Default)
Relays messages between two endpoints, with an interceptor reading passed messages. |
val coroutineContext: CoroutineContext
the coroutine context of the relayer |
suspend fun start(): Unit
Starts the relayer. |
|
fun stop(): Unit
Stops the relayer. |