Interface ListenerContainerRegistry
- All Known Implementing Classes:
KafkaListenerEndpointRegistry
public interface ListenerContainerRegistry
A registry for listener containers.
- Since:
- 2.7
-
Method Summary
Modifier and TypeMethodDescriptionReturn allMessageListenerContainerinstances including those managed by this registry and those declared as beans in the application context.Return theMessageListenerContainerwith the specified id ornullif no such container exists.Return the ids of the managedMessageListenerContainerinstance(s).Return the managedMessageListenerContainerinstance(s).Return theMessageListenerContainerwith the specified id ornullif no such container exists.
-
Method Details
-
getListenerContainer
Return theMessageListenerContainerwith the specified id ornullif no such container exists.- Parameters:
id- the id of the container- Returns:
- the container or
nullif no container with that id exists - See Also:
-
getUnregisteredListenerContainer
Return theMessageListenerContainerwith the specified id ornullif no such container exists. Returns containers that are not registered with the registry, but exist in the application context.- Parameters:
id- the id of the container- Returns:
- the container or
nullif no container with that id exists - See Also:
-
getListenerContainerIds
Return the ids of the managedMessageListenerContainerinstance(s).- Returns:
- the ids.
- See Also:
-
getListenerContainers
Collection<MessageListenerContainer> getListenerContainers()Return the managedMessageListenerContainerinstance(s).- Returns:
- the managed
MessageListenerContainerinstance(s). - See Also:
-
getAllListenerContainers
Collection<MessageListenerContainer> getAllListenerContainers()Return allMessageListenerContainerinstances including those managed by this registry and those declared as beans in the application context. Prototype-scoped containers will be included. Lazy beans that have not yet been created will not be initialized by a call to this method.- Returns:
- the
MessageListenerContainerinstance(s). - See Also:
-