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 interface
Factory interface forRabbitMQFailureHandler
static interface
Identifiers 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 benull
context
- theContext
in which the handling should be donereason
- the reason for the failure- Returns:
- a
CompletionStage
-