Interface RabbitMQFailureHandler
- All Known Implementing Classes:
RabbitMQAccept,RabbitMQFailStop,RabbitMQReject,RabbitMQRequeue
@Experimental("Experimental API")
public interface RabbitMQFailureHandler
Implemented to provide message failure strategies.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFactory interface forRabbitMQFailureHandlerstatic interfaceIdentifiers of default failure strategies -
Method Summary
Modifier and TypeMethodDescription<V> CompletionStage<Void>handle(IncomingRabbitMQMessage<V> message, org.eclipse.microprofile.reactive.messaging.Metadata metadata, io.vertx.mutiny.core.Context context, Throwable reason) Handle message failure.
-
Method Details
-
handle
<V> CompletionStage<Void> handle(IncomingRabbitMQMessage<V> message, org.eclipse.microprofile.reactive.messaging.Metadata metadata, io.vertx.mutiny.core.Context context, Throwable reason) Handle message failure.- Type Parameters:
V- message body type- Parameters:
message- the failed messagemetadata- additional nack metadata, may benullcontext- theContextin which the handling should be donereason- the reason for the failure- Returns:
- a
CompletionStage
-