MessageProducer send methods with a CompletionListener@Deprecated
@FunctionalInterface
public interface ConfirmListener
Publisher Confirms are a RabbitMQ extension to the AMQP protocol. In the context of the JMS client, they allow to be asynchronously notified when an outbound message has been confirmed by the broker (meaning the message made it safely to the broker).
Note publisher confirms are enabled at the RMQConnectionFactory level,
by setting a ConfirmListener instance with
RMQConnectionFactory.setConfirmListener(ConfirmListener). This
means all the AMQP Channel created from the RMQConnectionFactory
instance will have publisher confirms enabled.
This interface is deprecated since the library supports JMS 2.0 Asynchronous Send
(CompletionListener API). It will be removed in RabbitMQ JMS Client 3.0.
Do not use async send methods and the ConfirmListener API
at the same time, the behavior when they are both in use is not determined.
RMQConnectionFactory.setConfirmListener(ConfirmListener),
MessageProducer.send(Message, CompletionListener),
MessageProducer.send(Destination, Message, CompletionListener),
MessageProducer.send(Message, int, int, long, CompletionListener),
MessageProducer.send(Destination, Message, int, int, long, CompletionListener)| Modifier and Type | Method and Description |
|---|---|
void |
handle(PublisherConfirmContext context)
Deprecated.
Callback invoked when an outbound message is confirmed.
|
void handle(PublisherConfirmContext context)
context - information about the confirmed messageCopyright © 2022. All rights reserved.