Messages have a body, which can be null, and also headers, which can be empty.
If the message was sent specifying a reply handler, it can be replied to using reply.
If you want to notify the sender that processing failed, then fail can be called.
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public T | |
| public default void | |
| public MultiMap | |
| public boolean | |
| public default void | |
| public void | reply(@Nullable Object
the reply message message, DeliveryOptions the delivery options options)Link |
| public @Nullable String | Returns: the reply address, or null, if message was sent without a reply handler.The reply address. |
| public default <R> void | replyAndRequest(@Nullable Object
the message to reply with. message, Handler<AsyncResult<Message<R>>> the reply handler for the reply. replyHandler)Reply to this message, specifying a |
| public default <R> Future | replyAndRequest(@Nullable Object message)
Like |
| public default <R> void | replyAndRequest(@Nullable Object
the message body, may be message, DeliveryOptions nulldelivery options options, Handler<AsyncResult<Message<R>>> reply handler will be called when any reply from the recipient is received replyHandler)Like |
| public <R> Future | replyAndRequest(@Nullable Object message, DeliveryOptions options)
Like |
| address | back to summary |
|---|---|
| public String address() The address the message was sent to | |
| body | back to summary |
|---|---|
| public T body() The body of the message. Can be null.
| |
| fail | back to summary |
|---|---|
| public default void fail(int failureCode, String message) Signal to the sender that processing of this message failed. If the message was sent specifying a result handler the handler will be called with a failure corresponding to the failure code and message specified here.
| |
| headers | back to summary |
|---|---|
| public MultiMap headers() Multi-map of message headers. Can be empty
| |
| isSend | back to summary |
|---|---|
| public boolean isSend() Signals if this message represents a send or publish event.
| |
| reply | back to summary |
|---|---|
| public default void reply(@Nullable Object message) Reply to this message. If the message was sent specifying a reply handler, that handler will be called when it has received a reply. If the message wasn't sent specifying a receipt handler this method does nothing. | |
| reply | back to summary |
|---|---|
| public void reply(@Nullable Object message, DeliveryOptions options) Link
| |
| replyAddress | back to summary |
|---|---|
| public @Nullable String replyAddress() The reply address. Can be null. | |
| replyAndRequest | back to summary |
|---|---|
| public default <R> void replyAndRequest(@Nullable Object message, Handler<AsyncResult<Message<R>>> replyHandler) Reply to this message, specifying a If the message was sent specifying a reply handler, that handler will be called when it has received a reply. If the message wasn't sent specifying a receipt handler this method does nothing.
| |
| replyAndRequest | back to summary |
|---|---|
| public default <R> Future Like | |
| replyAndRequest | back to summary |
|---|---|
| public default <R> void replyAndRequest(@Nullable Object message, DeliveryOptions options, Handler<AsyncResult<Message<R>>> replyHandler) Like
| |
| replyAndRequest | back to summary |
|---|---|
| public <R> Future Like | |