public class RabbitMQAccept extends Object implements RabbitMQFailureHandler
RabbitMQFailureHandler
that in effect treats the nack as an ack.RabbitMQFailureHandler.Strategy
Constructor and Description |
---|
RabbitMQAccept(String channel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<V> CompletionStage<Void> |
handle(IncomingRabbitMQMessage<V> msg,
io.vertx.mutiny.core.Context context,
Throwable reason)
Handle message failure.
|
public RabbitMQAccept(String channel)
channel
- the channelpublic <V> CompletionStage<Void> handle(IncomingRabbitMQMessage<V> msg, io.vertx.mutiny.core.Context context, Throwable reason)
RabbitMQFailureHandler
handle
in interface RabbitMQFailureHandler
V
- message body typemsg
- the failed messagecontext
- the Context
in which the handling should be donereason
- the reason for the failureCompletionStage
Copyright © 2018–2021 SmallRye. All rights reserved.