Package io.awspring.cloud.sqs.listener
Interface MessageListenerContainerRegistry
- All Superinterfaces:
Lifecycle,Phased,SmartLifecycle
- All Known Implementing Classes:
DefaultListenerContainerRegistry
Interface for registering and looking up containers at startup and runtime.
- Since:
- 3.0
- Author:
- Tomaz Fernandes
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Method Summary
Modifier and TypeMethodDescriptionReturn theMessageListenerContainerinstance registered within this registry with the provided id, or null if none.Return theMessageListenerContainerinstances registered within this registry.voidregisterListenerContainer(MessageListenerContainer<?> listenerContainer) Register aMessageListenerContainerinstance with this registry.Methods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
-
Method Details
-
registerListenerContainer
Register aMessageListenerContainerinstance with this registry.- Parameters:
listenerContainer- the instance.
-
getListenerContainers
Collection<MessageListenerContainer<?>> getListenerContainers()Return theMessageListenerContainerinstances registered within this registry.- Returns:
- the container instances.
-
getContainerById
Return theMessageListenerContainerinstance registered within this registry with the provided id, or null if none.- Parameters:
id- the id.- Returns:
- the container instance.
-