Interface ListenerContainerAware

All Known Implementing Classes:
BatchingRabbitTemplate, RabbitTemplate
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 ListenerContainerAware
MessageListeners that also implement this interface can have configuration verified during initialization.
Since:
1.5
  • Method Details

    • expectedQueueNames

      @Nullable Collection<String> expectedQueueNames()
      Return the queue names that the listener expects to listen to.
      Returns:
      the queue names.
    • getPendingReplyCounter

      default @Nullable ActiveObjectCounter<Object> getPendingReplyCounter()
      Return a counter for pending replies, if any.
      Returns:
      the counter, or null.
      Since:
      4.0