Delivery options allow to configure delivery timeout and message codec name, and to provide any headers that you wish to send with the message.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| public static final boolean | DEFAULT_LOCAL_ONLY
Whether the message should be delivered to local consumers only by default = false. |
| public static final long | DEFAULT_TIMEOUT
The default send timeout. |
| public static final TracingPolicy | DEFAULT_TRACING_POLICY
Default tracing control = |
| private MultiMap | |
| private boolean | |
| private long | |
| private TracingPolicy |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | DeliveryOptions(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Create a delivery options from JSON |
| Modifier and Type | Method and Description |
|---|---|
| public DeliveryOptions | |
| private void | |
| public String | |
| public MultiMap | |
| public long | |
| public TracingPolicy | |
| public boolean | |
| public DeliveryOptions | Returns: a reference to this, so the API can be used fluentlythe codec name codecName)Set the codec name. |
| public DeliveryOptions | Returns: a reference to this, so the API can be used fluentlythe headers headers)Set message headers from a multi-map. |
| public DeliveryOptions | Returns: a reference to this, so the API can be used fluentlytrue to deliver to local consumers only, false otherwiseWhether a message should be delivered to local consumers only. |
| public DeliveryOptions | Returns: a reference to this, so the API can be used fluentlythe timeout value, in ms. timeout)Set the send timeout. |
| public DeliveryOptions | Returns: a reference to this, so the API can be used fluentlythe tracing policy tracingPolicy)Set the tracing policy when Vert.x has tracing enabled. |
| public JsonObject | Returns: the JSON
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Convert to JSON. |
| codecName | back to summary |
|---|---|
| private String codecName | |
| DEFAULT_LOCAL_ONLY | back to summary |
|---|---|
| public static final boolean DEFAULT_LOCAL_ONLY Whether the message should be delivered to local consumers only by default = false. | |
| DEFAULT_TIMEOUT | back to summary |
|---|---|
| public static final long DEFAULT_TIMEOUT The default send timeout. | |
| DEFAULT_TRACING_POLICY | back to summary |
|---|---|
| public static final TracingPolicy DEFAULT_TRACING_POLICY Default tracing control = | |
| headers | back to summary |
|---|---|
| private MultiMap headers | |
| localOnly | back to summary |
|---|---|
| private boolean localOnly | |
| timeout | back to summary |
|---|---|
| private long timeout | |
| tracingPolicy | back to summary |
|---|---|
| private TracingPolicy tracingPolicy | |
| DeliveryOptions | back to summary |
|---|---|
| public DeliveryOptions() Default constructor | |
| DeliveryOptions | back to summary |
|---|---|
| public DeliveryOptions(DeliveryOptions other) Copy constructor
| |
| DeliveryOptions | back to summary |
|---|---|
| public DeliveryOptions(JsonObject json)
References Deprecated
See corresponding docs for further information. Create a delivery options from JSON
| |
| addHeader | back to summary |
|---|---|
| public DeliveryOptions addHeader(String key, String value) Add a message header.
Message headers can be sent with any message and will be accessible with
| |
| checkHeaders | back to summary |
|---|---|
| private void checkHeaders() | |
| getCodecName | back to summary |
|---|---|
| public String getCodecName() Get the codec name. When sending or publishing a message a codec name can be provided. This must correspond with a previously registered message codec. This allows you to send arbitrary objects on the event bus (e.g. POJOs).
| |
| getHeaders | back to summary |
|---|---|
| public MultiMap getHeaders() Get the message headers
| |
| getSendTimeout | back to summary |
|---|---|
| public long getSendTimeout() Get the send timeout. When sending a message with a response handler a send timeout can be provided. If no response is received within the timeout the handler will be called with a failure.
| |
| getTracingPolicy | back to summary |
|---|---|
public TracingPolicy getTracingPolicy()
| |
| isLocalOnly | back to summary |
|---|---|
public boolean isLocalOnly()
| |
| setCodecName | back to summary |
|---|---|
| public DeliveryOptions setCodecName(String codecName) Set the codec name.
| |
| setHeaders | back to summary |
|---|---|
| public DeliveryOptions setHeaders(MultiMap headers) Set message headers from a multi-map.
| |
| setLocalOnly | back to summary |
|---|---|
| public DeliveryOptions setLocalOnly(boolean localOnly) Whether a message should be delivered to local consumers only. Defaults to This option is effective in clustered mode only and does not apply to reply messages.
| |
| setSendTimeout | back to summary |
|---|---|
| public DeliveryOptions setSendTimeout(long timeout) Set the send timeout.
| |
| setTracingPolicy | back to summary |
|---|---|
| public DeliveryOptions setTracingPolicy(TracingPolicy tracingPolicy) Set the tracing policy when Vert.x has tracing enabled.
| |
| toJson | back to summary |
|---|---|
| public JsonObject toJson()
References Deprecated
See corresponding docs for further information. Convert to JSON.
| |