vertx / io.vertx.core.eventbus / Message / reply

reply

abstract fun reply(message: Any): Unit

Reply to this message.

If the message was sent specifying a reply handler, that handler will be called when it has received a reply. If the message wasn't sent specifying a receipt handler this method does nothing.

Parameters

message - the message to reply with.

abstract fun <R : Any> reply(message: Any, replyHandler: Handler<AsyncResult<Message<R>>>): Unit

The same as reply(R message) but you can specify handler for the reply - i.e. to receive the reply to the reply.

Parameters

message - the message to reply with.

replyHandler - the reply handler for the reply.

abstract fun reply(message: Any, options: DeliveryOptions): Unit

Link #reply(Object) but allows you to specify delivery options for the reply.

Parameters

message - the reply message

options - the delivery options

abstract fun <R : Any> reply(message: Any, options: DeliveryOptions, replyHandler: Handler<AsyncResult<Message<R>>>): Unit

The same as reply(R message, DeliveryOptions) but you can specify handler for the reply - i.e. to receive the reply to the reply.

Parameters

message - the reply message

options - the delivery options

replyHandler - the reply handler for the reply.