Class RabbitMQAutoAck
- java.lang.Object
-
- io.smallrye.reactive.messaging.rabbitmq.ack.RabbitMQAutoAck
-
- All Implemented Interfaces:
RabbitMQAckHandler
public class RabbitMQAutoAck extends Object implements RabbitMQAckHandler
ARabbitMQAckHandlerused when auto-ack is on.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.smallrye.reactive.messaging.rabbitmq.ack.RabbitMQAckHandler
RabbitMQAckHandler.Strategy
-
-
Constructor Summary
Constructors Constructor Description RabbitMQAutoAck(String channel)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> CompletionStage<Void>handle(IncomingRabbitMQMessage<V> msg, io.vertx.mutiny.core.Context context)Handle the request to acknowledge a message.
-
-
-
Constructor Detail
-
RabbitMQAutoAck
public RabbitMQAutoAck(String channel)
Constructor.- Parameters:
channel- the channel on which acks are issued
-
-
Method Detail
-
handle
public <V> CompletionStage<Void> handle(IncomingRabbitMQMessage<V> msg, io.vertx.mutiny.core.Context context)
Description copied from interface:RabbitMQAckHandlerHandle the request to acknowledge a message.- Specified by:
handlein interfaceRabbitMQAckHandler- Type Parameters:
V- message body type- Parameters:
msg- the message to acknowledgecontext- theContextin which the acknowledgement should take place- Returns:
- a
CompletionStage
-
-