Interface ProtonDeliveryListener

All Superinterfaces:
org.springframework.amqp.core.MessageListener
All Known Subinterfaces:
AcknowledgingProtonDeliveryListener
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 ProtonDeliveryListener extends org.springframework.amqp.core.MessageListener
A message listener extension to process ProtonJ native Delivery objects.
Since:
4.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDelivery(org.apache.qpid.protonj2.client.Delivery delivery)
    Process ProtonJ Delivery.
    default void
    onMessage(org.springframework.amqp.core.Message message)
     

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

    containerAckMode, isAsyncReplies, onMessageBatch
  • Method Details

    • onDelivery

      void onDelivery(org.apache.qpid.protonj2.client.Delivery delivery) throws Exception
      Process ProtonJ Delivery.
      Parameters:
      delivery - the delivery to handle.
      Throws:
      Exception - any exception from the handling logic.
    • onMessage

      default void onMessage(org.springframework.amqp.core.Message message)
      Specified by:
      onMessage in interface org.springframework.amqp.core.MessageListener