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 Type
    Method
    Description
    default void
    onDelivery(org.apache.qpid.protonj2.client.Delivery delivery)
    Process ProtonJ Delivery.
    void
    onDelivery(org.apache.qpid.protonj2.client.Delivery delivery, @Nullable AmqpAcknowledgment acknowledgment)
    Process ProtonJ Delivery and optionally acknowledge it with a callback from the listener container.

    Methods inherited from interface org.springframework.amqp.core.MessageListener

    containerAckMode, isAsyncReplies, onMessageBatch

    Methods 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 ProtonJ Delivery and 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

      default void onDelivery(org.apache.qpid.protonj2.client.Delivery delivery) throws Exception
      Description copied from interface: ProtonDeliveryListener
      Process ProtonJ Delivery.
      Specified by:
      onDelivery in interface ProtonDeliveryListener
      Parameters:
      delivery - the delivery to handle.
      Throws:
      Exception - any exception from the handling logic.