public class RabbitMQFailStop extends Object implements RabbitMQFailureHandler
RabbitMQFailureHandler that rejects the message and reports a failure.RabbitMQFailureHandler.Strategy| Constructor and Description |
|---|
RabbitMQFailStop(RabbitMQConnector connector,
String channel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<V> CompletionStage<Void> |
handle(IncomingRabbitMQMessage<V> msg,
io.vertx.mutiny.core.Context context,
Throwable reason)
Handle message failure.
|
public RabbitMQFailStop(RabbitMQConnector connector, String channel)
channel - the channelpublic <V> CompletionStage<Void> handle(IncomingRabbitMQMessage<V> msg, io.vertx.mutiny.core.Context context, Throwable reason)
RabbitMQFailureHandlerhandle in interface RabbitMQFailureHandlerV - message body typemsg - the failed messagecontext - the Context in which the handling should be donereason - the reason for the failureCompletionStageCopyright © 2018–2021 SmallRye. All rights reserved.