Interface AcknowledgingProtonDeliveryListener
- All Superinterfaces:
MessageListener,ProtonDeliveryListener
- All Known Implementing Classes:
AmqpMessagingListenerAdapter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AcknowledgingProtonDeliveryListener
extends ProtonDeliveryListener
The
ProtonDeliveryListener extension with an AmqpAcknowledgment callback
provided from the container.- Since:
- 4.1
- Author:
- Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonDelivery(org.apache.qpid.protonj2.client.Delivery delivery) Process ProtonJDelivery.voidonDelivery(org.apache.qpid.protonj2.client.Delivery delivery, @Nullable AmqpAcknowledgment acknowledgment) Process ProtonJDeliveryand optionally acknowledge it with a callback from the listener container.Methods inherited from interface org.springframework.amqp.core.MessageListener
containerAckMode, isAsyncReplies, onMessageBatchMethods inherited from interface org.springframework.amqp.client.listener.ProtonDeliveryListener
onMessage
-
Method Details
-
onDelivery
void onDelivery(org.apache.qpid.protonj2.client.Delivery delivery, @Nullable AmqpAcknowledgment acknowledgment) throws Exception Process ProtonJDeliveryand optionally acknowledge it with a callback from the listener container. The implementation may choose to settle and replenish link credits some other way.- Parameters:
delivery- the delivery to handle.acknowledgment- the acknowledgment callback for this delivery.- Throws:
Exception- any exception from the handling logic.
-
onDelivery
Description copied from interface:ProtonDeliveryListenerProcess ProtonJDelivery.- Specified by:
onDeliveryin interfaceProtonDeliveryListener- Parameters:
delivery- the delivery to handle.- Throws:
Exception- any exception from the handling logic.
-