Interface ListenerContainerRegistry
-
- All Known Implementing Classes:
KafkaListenerEndpointRegistry
public interface ListenerContainerRegistryA registry for listener containers.- Since:
- 2.7
- Author:
- Gary Russell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<MessageListenerContainer>getAllListenerContainers()Return allMessageListenerContainerinstances including those managed by this registry and those declared as beans in the application context.MessageListenerContainergetListenerContainer(java.lang.String id)Return theMessageListenerContainerwith the specified id ornullif no such container exists.java.util.Set<java.lang.String>getListenerContainerIds()Return the ids of the managedMessageListenerContainerinstance(s).java.util.Collection<MessageListenerContainer>getListenerContainers()Return the managedMessageListenerContainerinstance(s).
-
-
-
Method Detail
-
getListenerContainer
MessageListenerContainer getListenerContainer(java.lang.String id)
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:
KafkaListenerEndpoint.getId(),getListenerContainerIds()
-
getListenerContainerIds
java.util.Set<java.lang.String> getListenerContainerIds()
Return the ids of the managedMessageListenerContainerinstance(s).- Returns:
- the ids.
- See Also:
getListenerContainer(String)
-
getListenerContainers
java.util.Collection<MessageListenerContainer> getListenerContainers()
Return the managedMessageListenerContainerinstance(s).- Returns:
- the managed
MessageListenerContainerinstance(s). - See Also:
getAllListenerContainers()
-
getAllListenerContainers
java.util.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:
getListenerContainers()
-
-