Package io.awspring.cloud.sqs.listener
Interface MessageListenerContainer<T>
- Type Parameters:
T- theMessagepayload type.
- All Superinterfaces:
Lifecycle,Phased,SmartLifecycle
- All Known Implementing Classes:
AbstractMessageListenerContainer,AbstractPipelineMessageListenerContainer,SqsMessageListenerContainer
A container for an
AsyncMessageListener with SmartLifecycle capabilities.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the container id.voidsetAsyncMessageListener(AsyncMessageListener<T> asyncMessageListener) Set the listener to be used to receive messages.voidvoidsetMessageListener(MessageListener<T> messageListener) Set the listener to be used to process messages.Methods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
-
Field Details
-
DEFAULT_PHASE
static final int DEFAULT_PHASE- See Also:
-
-
Method Details
-
getId
String getId()Get the container id.- Returns:
- the id.
-
setId
-
setMessageListener
Set the listener to be used to process messages.- Parameters:
messageListener- the instance.
-
setAsyncMessageListener
Set the listener to be used to receive messages.- Parameters:
asyncMessageListener- the message listener instance.
-