Package com.amazon.sqs.javamessaging
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SQSMessageConsumer
getMessageConsumer()
This is used to determine the state of the consumer, when the message listener scheduler is processing the messages.void
messageDispatched()
Notify the prefetchThread that the message is dispatched from messageQueue when user calls for receive or message listener onMessage is called.void
messageListenerReady()
Notify the prefetchThread that the message listener has finished with any previous message and is ready to accept another.
-
-
-
Method Detail
-
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
-
-