Interface RabbitListenerContainerFactory<C extends MessageListenerContainer>
- Type Parameters:
C- the container type.
- All Superinterfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- 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>
extends org.springframework.beans.factory.BeanNameAware
Factory of
MessageListenerContainers.- Since:
- 1.4
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault CCreate aMessageListenerContainerwith noMessageListeneror queues; the listener must be added later before the container is started.Create aMessageListenerContainerfor the givenRabbitListenerEndpoint.default StringReturn a bean name of the component or null if not a bean.default voidsetBeanName(String name)
-
Method Details
-
createListenerContainer
Create aMessageListenerContainerfor the givenRabbitListenerEndpoint.- Parameters:
endpoint- the endpoint to configure.- Returns:
- the created container.
-
createListenerContainer
Create aMessageListenerContainerwith noMessageListeneror queues; the listener must be added later before the container is started.- Returns:
- the created container.
- Since:
- 2.1.
-
setBeanName
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
getBeanName
Return a bean name of the component or null if not a bean.- Returns:
- the bean name.
- Since:
- 3.2
-