Class RabbitMQFailStop

java.lang.Object
io.smallrye.reactive.messaging.rabbitmq.fault.RabbitMQFailStop
All Implemented Interfaces:
RabbitMQFailureHandler

public class RabbitMQFailStop extends Object implements RabbitMQFailureHandler
A RabbitMQFailureHandler that rejects the message and reports a failure.
  • Constructor Details

    • RabbitMQFailStop

      public RabbitMQFailStop(RabbitMQConnector connector, String channel)
      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 interface RabbitMQFailureHandler
      Type Parameters:
      V - message body type
      Parameters:
      msg - 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