public class OutgoingAmqpMessage<T> extends AmqpMessage<T> implements Message<T>
APPLICATION_JSON, message, onNack| Constructor and Description |
|---|
OutgoingAmqpMessage(io.vertx.mutiny.amqp.AmqpMessage message,
OutgoingAmqpMetadata amqpMetadata) |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
ack()
Acknowledge this message.
|
Supplier<CompletionStage<Void>> |
getAck() |
String |
getAddress() |
io.vertx.core.json.JsonObject |
getApplicationProperties() |
String |
getContentEncoding() |
String |
getContentType() |
Object |
getCorrelationId() |
String |
getGroupId() |
Object |
getMessageId() |
Metadata |
getMetadata() |
Function<Throwable,CompletionStage<Void>> |
getNack() |
int |
getPriority() |
String |
getSubject() |
long |
getTtl() |
boolean |
isDurable() |
CompletionStage<Void> |
nack(Throwable reason,
Metadata metadata)
Acknowledge negatively this message.
|
builder, getAmqpMessage, getBody, getCreationTime, getDeliveryCount, getError, getExpiryTime, getGroupSequence, getPayload, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMetadata, getMetadata, getPayload, nack, of, of, of, of, of, of, of, of, of, unwrap, withAck, withMetadata, withMetadata, withNack, withPayloadpublic OutgoingAmqpMessage(io.vertx.mutiny.amqp.AmqpMessage message,
OutgoingAmqpMetadata amqpMetadata)
public Metadata getMetadata()
getMetadata in interface Message<T>getMetadata in class AmqpMessage<T>public boolean isDurable()
isDurable in class AmqpMessage<T>public int getPriority()
getPriority in class AmqpMessage<T>public long getTtl()
getTtl in class AmqpMessage<T>public Object getMessageId()
getMessageId in class AmqpMessage<T>public String getAddress()
getAddress in class AmqpMessage<T>public String getGroupId()
getGroupId in class AmqpMessage<T>public String getContentType()
getContentType in class AmqpMessage<T>public Object getCorrelationId()
getCorrelationId in class AmqpMessage<T>public String getContentEncoding()
getContentEncoding in class AmqpMessage<T>public String getSubject()
getSubject in class AmqpMessage<T>public CompletionStage<Void> ack()
Messagepublic CompletionStage<Void> nack(Throwable reason, Metadata metadata)
Messagenack is used to indicate that the processing of a message failed. The reason is passed as parameter.
Additional metadata may be provided that the connector can use when nacking the message. The interpretation
of metadata is connector-specific.nack in interface Message<T>nack in class AmqpMessage<T>reason - the reason of the nack, must not be nullmetadata - additional nack metadata the connector may use, may be nullpublic Supplier<CompletionStage<Void>> getAck()
getAck in interface Message<T>getAck in class AmqpMessage<T>CompletionStage.public Function<Throwable,CompletionStage<Void>> getNack()
public io.vertx.core.json.JsonObject getApplicationProperties()
getApplicationProperties in class AmqpMessage<T>Copyright © 2018–2021 SmallRye. All rights reserved.