Interface RabbitListenerConfigurer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Optional interface to be implemented by Spring managed bean willing
to customize how Rabbit listener endpoints are configured. Typically
used to defined the default
RabbitListenerContainerFactory to use or for registering Rabbit endpoints
in a programmatic fashion as opposed to the declarative
approach of using the @RabbitListener annotation.
See @EnableRabbit for detailed usage examples.
- Since:
- 1.4
- Author:
- Stephane Nicoll, Gary Russell
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidCallback allowing aRabbitListenerEndpointRegistryand specificRabbitListenerEndpointinstances to be registered against the givenRabbitListenerEndpointRegistrar.
-
Method Details
-
configureRabbitListeners
Callback allowing aRabbitListenerEndpointRegistryand specificRabbitListenerEndpointinstances to be registered against the givenRabbitListenerEndpointRegistrar. The defaultRabbitListenerContainerFactorycan also be customized.- Parameters:
registrar- the registrar to be configured
-