public class RabbitMQAutoAck extends Object implements RabbitMQAckHandler
RabbitMQAckHandler
used when auto-ack is on.RabbitMQAckHandler.Strategy
Constructor and Description |
---|
RabbitMQAutoAck(String channel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<V> CompletionStage<Void> |
handle(IncomingRabbitMQMessage<V> msg,
io.vertx.mutiny.core.Context context)
Handle the request to acknowledge a message.
|
public RabbitMQAutoAck(String channel)
channel
- the channel on which acks are issuedpublic <V> CompletionStage<Void> handle(IncomingRabbitMQMessage<V> msg, io.vertx.mutiny.core.Context context)
RabbitMQAckHandler
handle
in interface RabbitMQAckHandler
V
- message body typemsg
- the message to acknowledgecontext
- the Context
in which the acknowledgement should take placeCompletionStage
Copyright © 2018–2021 SmallRye. All rights reserved.