Class RabbitMQFailStop
java.lang.Object
io.smallrye.reactive.messaging.rabbitmq.fault.RabbitMQFailStop
- All Implemented Interfaces:
RabbitMQFailureHandler
A
RabbitMQFailureHandler
that rejects the message and reports a failure.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.smallrye.reactive.messaging.rabbitmq.fault.RabbitMQFailureHandler
RabbitMQFailureHandler.Strategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> CompletionStage<Void>
handle
(IncomingRabbitMQMessage<V> msg, org.eclipse.microprofile.reactive.messaging.Metadata metadata, io.vertx.mutiny.core.Context context, Throwable reason) Handle message failure.
-
Constructor Details
-
RabbitMQFailStop
Constructor.- Parameters:
channel
- the channel
-
-
Method Details
-
handle
public <V> CompletionStage<Void> handle(IncomingRabbitMQMessage<V> msg, org.eclipse.microprofile.reactive.messaging.Metadata metadata, io.vertx.mutiny.core.Context context, Throwable reason) Description copied from interface:RabbitMQFailureHandler
Handle message failure.- Specified by:
handle
in interfaceRabbitMQFailureHandler
- Type Parameters:
V
- message body type- Parameters:
msg
- the failed messagemetadata
- additional nack metadata, may benull
context
- theContext
in which the handling should be donereason
- the reason for the failure- Returns:
- a
CompletionStage
-