Interface RabbitMQFailureHandler

All Known Implementing Classes:
RabbitMQAccept, RabbitMQFailStop, RabbitMQReject, RabbitMQRequeue

@Experimental("Experimental API") public interface RabbitMQFailureHandler
Implemented to provide message failure strategies.
  • 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 message
      metadata - additional nack metadata, may be null
      context - the Context in which the handling should be done
      reason - the reason for the failure
      Returns:
      a CompletionStage