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

# send

`open fun send(address: String, message: Any): EventBus`

Sends a message.

The message will be delivered to at most one of the handlers registered to the address.

### Parameters

`address` - the address to send it to

`message` - the message, may be `null`

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

`open fun <T : Any> send(address: String, message: Any, replyHandler: Handler<AsyncResult<Message<T>>>): EventBus`

Like `io.vertx.reactivex.core.eventbus.EventBus#send` but specifying a `replyHandler` that will be called if the recipient subsequently replies to the message.

### Parameters

`address` - the address to send it to

`message` - the message, may be `null`

`replyHandler` - reply handler will be called when any reply from the recipient is received, may be `null`

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

`open fun send(address: String, message: Any, options: DeliveryOptions): EventBus`

Like `io.vertx.reactivex.core.eventbus.EventBus#send` but specifying `options` that can be used to configure the delivery.

### Parameters

`address` - the address to send it to

`message` - the message, may be `null`

`options` - delivery options

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

`open fun <T : Any> send(address: String, message: Any, options: DeliveryOptions, replyHandler: Handler<AsyncResult<Message<T>>>): EventBus`

Like `io.vertx.reactivex.core.eventbus.EventBus#send` but specifying a `replyHandler` that will be called if the recipient subsequently replies to the message.

### Parameters

`address` - the address to send it to

`message` - the message, may be `null`

`options` - delivery options

`replyHandler` - reply handler will be called when any reply from the recipient is received, may be `null`

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