abstract 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.
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
abstract fun <T : Any> send(address: String, message: Any, replyHandler: Handler<AsyncResult<Message<T>>>): EventBus
Like #send(String, Object) but specifying a replyHandler that will be called if the recipient subsequently replies to the message.
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
abstract fun send(address: String, message: Any, options: DeliveryOptions): EventBus
Like #send(String, Object) but specifying options that can be used to configure the delivery.
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
abstract fun <T : Any> send(address: String, message: Any, options: DeliveryOptions, replyHandler: Handler<AsyncResult<Message<T>>>): EventBus
Like #send(String, Object, DeliveryOptions) but specifying a replyHandler that will be called if the recipient subsequently replies to the message.
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