Class RabbitMQAccept
- java.lang.Object
-
- io.smallrye.reactive.messaging.rabbitmq.fault.RabbitMQAccept
-
- All Implemented Interfaces:
RabbitMQFailureHandler
public class RabbitMQAccept extends Object implements RabbitMQFailureHandler
ARabbitMQFailureHandlerthat in effect treats the nack as an ack.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.smallrye.reactive.messaging.rabbitmq.fault.RabbitMQFailureHandler
RabbitMQFailureHandler.Strategy
-
-
Constructor Summary
Constructors Constructor Description RabbitMQAccept(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, Throwable reason)Handle message failure.
-
-
-
Constructor Detail
-
RabbitMQAccept
public RabbitMQAccept(String channel)
Constructor.- Parameters:
channel- the channel
-
-
Method Detail
-
handle
public <V> CompletionStage<Void> handle(IncomingRabbitMQMessage<V> msg, io.vertx.mutiny.core.Context context, Throwable reason)
Description copied from interface:RabbitMQFailureHandlerHandle message failure.- Specified by:
handlein interfaceRabbitMQFailureHandler- Type Parameters:
V- message body type- Parameters:
msg- the failed messagecontext- theContextin which the handling should be donereason- the reason for the failure- Returns:
- a
CompletionStage
-
-