public class PollTaskUrlsResponse.SignedURLsForAQueue extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
signedDeleteUrl
Signed URL to delete messages that have been received using the
signedPollUrl. |
String |
signedPollUrl
Signed URL to get message from the Azure Queue Storage queue, that holds messages for the given
provisionerId and workerType. |
| Constructor and Description |
|---|
SignedURLsForAQueue() |
public String signedDeleteUrl
Signed URL to delete messages that have been received using the signedPollUrl. You must do this to avoid receiving the same message again. To use this URL you must substitute {{messageId}} and {{popReceipt}} with MessageId and PopReceipt from the XML response the signedPollUrl gave you. It is important that you encodeURIComponent both MessageId and PopReceipt prior to substitution, otherwise you will experience intermittent failures! Note this URL only works with DELETE request.
Syntax: ^https://
public String signedPollUrl
Signed URL to get message from the Azure Queue Storage queue, that holds messages for the given provisionerId and workerType. Note that this URL returns XML, see documentation for the Azure Queue Storage REST API for details. When you have a message you can use claimTask to claim the task. You will need to parse the XML response and base64 decode and JSON parse the MessageText. After you have called claimTask you must us the signedDeleteUrl to delete the message. Remark, you are allowed to append &numofmessages=N, where N < 32, to the URLs if you wish to obtain more than one message at the time.
Copyright © 2014–2017 Mozilla. All rights reserved.