Interface RabbitListenerContainerFactory<C extends MessageListenerContainer>

Type Parameters:
C - the container type.
All Known Implementing Classes:
AbstractRabbitListenerContainerFactory, BaseRabbitListenerContainerFactory, DirectRabbitListenerContainerFactory, SimpleRabbitListenerContainerFactory
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 RabbitListenerContainerFactory<C extends MessageListenerContainer>
Since:
1.4
See Also:
  • Method Details

    • createListenerContainer

      C createListenerContainer(@Nullable RabbitListenerEndpoint endpoint)
      Parameters:
      endpoint - the endpoint to configure.
      Returns:
      the created container.
    • createListenerContainer

      default C createListenerContainer()
      Create a MessageListenerContainer with no MessageListener or queues; the listener must be added later before the container is started.
      Returns:
      the created container.
      Since:
      2.1.