pickNextMessage
public BlaubotMessage pickNextMessage(java.util.concurrent.BlockingQueue<BlaubotMessage> messageQueue)
Picks a message from the given queue.
The implementation has to ensure, that it returns regularly, even when there is no message available.
The preferred time for this is specified by the POLL_TIMEOUT constant.
- Specified by:
pickNextMessage
in interface IBlaubotMessagePickerStrategy
- Parameters:
messageQueue
- the queue to pick the next message from
- Returns:
- the picked message or null, if nothing is available to be sent.