Receiving messages synchronously

To receive messages synchronously, your application explicitly polls the queue for messages. It may poll the queue periodically,
or when a user initiates a particular action such as clicking a Refresh button.