@FunctionalInterface public interface RabbitListenerConfigurer
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.
EnableRabbit
,
RabbitListenerEndpointRegistrar
Modifier and Type | Method and Description |
---|---|
void |
configureRabbitListeners(RabbitListenerEndpointRegistrar registrar)
Callback allowing a
RabbitListenerEndpointRegistry and specific RabbitListenerEndpoint instances to be registered against the given
RabbitListenerEndpointRegistrar . |
void configureRabbitListeners(RabbitListenerEndpointRegistrar registrar)
RabbitListenerEndpointRegistry
and specific RabbitListenerEndpoint
instances to be registered against the given
RabbitListenerEndpointRegistrar
. The default
RabbitListenerContainerFactory
can also be customized.registrar
- the registrar to be configured