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.
@FunctionalInterface public interface RabbitListenerConfigurerOptional interface to be implemented by Spring managed bean willing to customize how Rabbit listener endpoints are configured. Typically used to defined the defaultRabbitListenerContainerFactoryto use or for registering Rabbit endpoints in a programmatic fashion as opposed to the declarative approach of using the @RabbitListenerannotation.See @
EnableRabbitfor detailed usage examples.- Since:
- 1.4
- Author:
- Stephane Nicoll, Gary Russell
- See Also:
EnableRabbit,RabbitListenerEndpointRegistrar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigureRabbitListeners(RabbitListenerEndpointRegistrar registrar)Callback allowing aRabbitListenerEndpointRegistryand specificRabbitListenerEndpointinstances to be registered against the givenRabbitListenerEndpointRegistrar.
-
-
-
Method Detail
-
configureRabbitListeners
void configureRabbitListeners(RabbitListenerEndpointRegistrar registrar)
Callback allowing aRabbitListenerEndpointRegistryand specificRabbitListenerEndpointinstances to be registered against the givenRabbitListenerEndpointRegistrar. The defaultRabbitListenerContainerFactorycan also be customized.- Parameters:
registrar- the registrar to be configured
-
-