Interface RabbitListenerContainerFactory<C extends MessageListenerContainer>
- Type Parameters:
C
- the container type.
- All Superinterfaces:
Aware
,BeanNameAware
- All Known Implementing Classes:
AbstractRabbitListenerContainerFactory
,BaseRabbitListenerContainerFactory
,DirectRabbitListenerContainerFactory
,SimpleRabbitListenerContainerFactory
,StreamRabbitListenerContainerFactory
- 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 BeanNameAware
Factory of
MessageListenerContainer
s.- Since:
- 1.4
- Author:
- Stephane Nicoll, Gary Russell, Ngoc Nhan
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault C
Create aMessageListenerContainer
with noMessageListener
or queues; the listener must be added later before the container is started.Create aMessageListenerContainer
for the givenRabbitListenerEndpoint
.default String
Return a bean name of the component or null if not a bean.default void
setBeanName
(String name)
-
Method Details
-
createListenerContainer
Create aMessageListenerContainer
for the givenRabbitListenerEndpoint
.- Parameters:
endpoint
- the endpoint to configure.- Returns:
- the created container.
-
createListenerContainer
Create aMessageListenerContainer
with noMessageListener
or queues; the listener must be added later before the container is started.- Returns:
- the created container.
- Since:
- 2.1.
-
setBeanName
- Specified by:
setBeanName
in interfaceBeanNameAware
-
getBeanName
Return a bean name of the component or null if not a bean.- Returns:
- the bean name.
- Since:
- 3.2
-