public class RabbitMQReject extends Object implements RabbitMQFailureHandler
RabbitMQFailureHandler.Strategy| Constructor and Description |
|---|
RabbitMQReject(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 RabbitMQReject(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.