Interface MessageListenerContainer<T>

Type Parameters:
T - the Message payload type.
All Superinterfaces:
Lifecycle, Phased, SmartLifecycle
All Known Implementing Classes:
AbstractMessageListenerContainer, AbstractPipelineMessageListenerContainer, SqsMessageListenerContainer

public interface MessageListenerContainer<T> extends SmartLifecycle
A container for an AsyncMessageListener with SmartLifecycle capabilities.
Since:
3.0
Author:
Tomaz Fernandes
  • Field Details

  • Method Details

    • getId

      String getId()
      Get the container id.
      Returns:
      the id.
    • setId

      void setId(String id)
    • setMessageListener

      void setMessageListener(MessageListener<T> messageListener)
      Set the listener to be used to process messages.
      Parameters:
      messageListener - the instance.
    • setAsyncMessageListener

      void setAsyncMessageListener(AsyncMessageListener<T> asyncMessageListener)
      Set the listener to be used to receive messages.
      Parameters:
      asyncMessageListener - the message listener instance.