Package | Description |
---|---|
io.vertx.core.eventbus |
== The Event Bus
:toc: left
The
event bus is the *nervous system* of Vert.x. |
Modifier and Type | Method and Description |
---|---|
DeliveryOptions |
DeliveryOptions.addHeader(String key,
String value)
Add a message header.
|
DeliveryOptions |
DeliveryOptions.setCodecName(String codecName)
Set the codec name.
|
DeliveryOptions |
DeliveryOptions.setHeaders(MultiMap headers)
Set message headers from a multi-map.
|
DeliveryOptions |
DeliveryOptions.setSendTimeout(long timeout)
Set the send timeout.
|
Modifier and Type | Method and Description |
---|---|
MessageProducer<T> |
MessageProducer.deliveryOptions(DeliveryOptions options)
Update the delivery options of this producer.
|
EventBus |
EventBus.publish(String address,
Object message,
DeliveryOptions options)
Like
EventBus.publish(String, Object) but specifying options that can be used to configure the delivery. |
<T> MessageProducer<T> |
EventBus.publisher(String address,
DeliveryOptions options)
Like
EventBus.publisher(String) but specifying delivery options that will be used for configuring the delivery of
the message. |
void |
Message.reply(Object message,
DeliveryOptions options)
Link
Message.reply(Object) but allows you to specify delivery options for the reply. |
<R> void |
Message.reply(Object message,
DeliveryOptions options,
Handler<AsyncResult<Message<R>>> replyHandler)
The same as
reply(R message, DeliveryOptions) but you can specify handler for the reply - i.e. |
EventBus |
EventBus.send(String address,
Object message,
DeliveryOptions options)
Like
EventBus.send(String, Object) but specifying options that can be used to configure the delivery. |
<T> EventBus |
EventBus.send(String address,
Object message,
DeliveryOptions options,
Handler<AsyncResult<Message<T>>> replyHandler)
Like
EventBus.send(String, Object, DeliveryOptions) but specifying a replyHandler that will be called if the recipient
subsequently replies to the message. |
<T> MessageProducer<T> |
EventBus.sender(String address,
DeliveryOptions options)
Like
EventBus.sender(String) but specifying delivery options that will be used for configuring the delivery of
the message. |
Constructor and Description |
---|
DeliveryOptions(DeliveryOptions other)
Copy constructor
|
Copyright © 2018. All rights reserved.