Class RabbitMQAck
java.lang.Object
io.smallrye.reactive.messaging.rabbitmq.ack.RabbitMQAck
- All Implemented Interfaces:
RabbitMQAckHandler
A
RabbitMQAckHandler
used when auto-ack is off.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.smallrye.reactive.messaging.rabbitmq.ack.RabbitMQAckHandler
RabbitMQAckHandler.Strategy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<V> CompletionStage<Void>
handle
(IncomingRabbitMQMessage<V> msg, io.vertx.mutiny.core.Context context) Handle the request to acknowledge a message.
-
Constructor Details
-
RabbitMQAck
Constructor.- Parameters:
channel
- the channel on which acks are issued
-
-
Method Details
-
handle
public <V> CompletionStage<Void> handle(IncomingRabbitMQMessage<V> msg, io.vertx.mutiny.core.Context context) Description copied from interface:RabbitMQAckHandler
Handle the request to acknowledge a message.- Specified by:
handle
in interfaceRabbitMQAckHandler
- Type Parameters:
V
- message body type- Parameters:
msg
- the message to acknowledgecontext
- theContext
in which the acknowledgement should take place- Returns:
- a
CompletionStage
-