Interface PrefetchManager

All Known Implementing Classes:
SQSMessageConsumerPrefetch

public interface PrefetchManager
This interface is helper to notify when the prefetchThread should be resuming messages.
  • Method Summary

    Modifier and Type
    Method
    Description
    This is used to determine the state of the consumer, when the message listener scheduler is processing the messages.
    void
    Notify the prefetchThread that the message is dispatched from messageQueue when user calls for receive or message listener onMessage is called.
    void
    Notify the prefetchThread that the message listener has finished with any previous message and is ready to accept another.
  • Method Details

    • messageDispatched

      void messageDispatched()
      Notify the prefetchThread that the message is dispatched from messageQueue when user calls for receive or message listener onMessage is called.
    • messageListenerReady

      void messageListenerReady()
      Notify the prefetchThread that the message listener has finished with any previous message and is ready to accept another.
    • getMessageConsumer

      SQSMessageConsumer getMessageConsumer()
      This is used to determine the state of the consumer, when the message listener scheduler is processing the messages.
      Returns:
      The message consumer, which owns the prefetchThread