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 RabbitListenerConfigurer
Optional interface to be implemented by Spring managed bean willing to customize how Rabbit listener endpoints are configured. Typically used to defined the defaultRabbitListenerContainerFactory
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:
EnableRabbit
,RabbitListenerEndpointRegistrar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configureRabbitListeners(RabbitListenerEndpointRegistrar registrar)
Callback allowing aRabbitListenerEndpointRegistry
and specificRabbitListenerEndpoint
instances to be registered against the givenRabbitListenerEndpointRegistrar
.
-
-
-
Method Detail
-
configureRabbitListeners
void configureRabbitListeners(RabbitListenerEndpointRegistrar registrar)
Callback allowing aRabbitListenerEndpointRegistry
and specificRabbitListenerEndpoint
instances to be registered against the givenRabbitListenerEndpointRegistrar
. The defaultRabbitListenerContainerFactory
can also be customized.- Parameters:
registrar
- the registrar to be configured
-
-