vertx / io.vertx.reactivex.core.eventbus / EventBus / addInterceptor

addInterceptor

open fun addInterceptor(interceptor: Handler<SendContext<Any>>): EventBus

Add an interceptor that will be called whenever a message is sent from Vert.x

Parameters

interceptor - the interceptor

Return
a reference to this, so the API can be used fluently