Package | Description |
---|---|
io.vertx.core.eventbus |
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.setLocalOnly(boolean localOnly)
Whether a message should be delivered to local consumers only.
|
DeliveryOptions |
DeliveryOptions.setSendTimeout(long timeout)
Set the send timeout.
|
DeliveryOptions |
DeliveryOptions.setTracingPolicy(TracingPolicy tracingPolicy)
Set the tracing policy when Vert.x has tracing enabled.
|
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> Future<Message<R>> |
Message.replyAndRequest(Object message,
DeliveryOptions options)
Like
Message.replyAndRequest(Object, DeliveryOptions, Handler) but returns a Future of the asynchronous result |
default <R> void |
Message.replyAndRequest(Object message,
DeliveryOptions options,
Handler<AsyncResult<Message<R>>> replyHandler)
Like
Message.replyAndRequest(Object, Handler) but specifying options that can be used
to configure the delivery. |
<T> Future<Message<T>> |
EventBus.request(String address,
Object message,
DeliveryOptions options)
Like
EventBus.request(String, Object, DeliveryOptions, Handler) but returns a Future of the asynchronous result |
default <T> EventBus |
EventBus.request(String address,
Object message,
DeliveryOptions options,
Handler<AsyncResult<Message<T>>> replyHandler)
Like
EventBus.request(String, Object, Handler) but specifying options that can be used to configure the delivery. |
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> 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 © 2022 Eclipse. All rights reserved.