| Modifier and Type | Field and Description |
|---|---|
protected io.vertx.rabbitmq.RabbitMQMessage |
message |
protected Metadata |
metadata |
protected RabbitMQAckHandler |
onAck |
protected RabbitMQFailureHandler |
onNack |
protected IncomingRabbitMQMetadata |
rabbitMQMetadata |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMetadata, getMetadata, nack, of, of, of, of, of, of, of, of, of, unwrap, withAck, withMetadata, withMetadata, withNack, withPayloadprotected final io.vertx.rabbitmq.RabbitMQMessage message
protected Metadata metadata
protected final IncomingRabbitMQMetadata rabbitMQMetadata
protected final RabbitMQFailureHandler onNack
protected final RabbitMQAckHandler onAck
public Supplier<CompletionStage<Void>> getAck()
getAck in interface Message<T>CompletionStage.public Function<Throwable,CompletionStage<Void>> getNack()
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>reason - the reason of the nack, must not be nullmetadata - additional nack metadata the connector may use, may be nullpublic void acknowledgeMessage()
public void rejectMessage(Throwable reason)
reason - the cause of the rejection, which must not be nullpublic T getPayload()
getPayload in interface Message<T>public Metadata getMetadata()
getMetadata in interface Message<T>public Optional<ZonedDateTime> getCreationTime(ZoneId zoneId)
public io.vertx.mutiny.rabbitmq.RabbitMQMessage getRabbitMQMessage()
public void injectTracingMetadata(TracingMetadata tracingMetadata)
Copyright © 2018–2021 SmallRye. All rights reserved.