Microsoft Azure Storage Client Library for C++
7.5.0
The Microsoft Azure Storage Client Library for C++ is a library for working with the Azure Storage Services in C++.
|
Represents a message in a Windows Azure queue. More...
Public Member Functions | |
cloud_queue_message () | |
Initializes a new instance of the azure::storage::cloud_queue_message class. More... | |
cloud_queue_message (utility::string_t content) | |
Initializes a new instance of the azure::storage::cloud_queue_message class, with text content. More... | |
cloud_queue_message (const std::vector< uint8_t > &content) | |
Initializes a new instance of the azure::storage::cloud_queue_message class with the specified raw data. More... | |
cloud_queue_message (utility::string_t id, utility::string_t pop_receipt) | |
Initializes a new instance of the azure::storage::cloud_queue_message class. More... | |
const utility::string_t | content_as_string () const |
Gets the content of the message as text. More... | |
const std::vector< uint8_t > | content_as_binary () const |
Gets the content of the message as raw data. More... | |
void | set_content (utility::string_t value) |
Sets the content of this message. More... | |
void | set_content (const std::vector< uint8_t > &value) |
Sets the content of this message. More... | |
const utility::string_t & | id () const |
Gets the unique ID of the message. More... | |
const utility::string_t & | pop_receipt () const |
Gets the message's pop receipt. More... | |
utility::datetime | expiration_time () const |
Returns the expiration time for the message, based on its time-to-live. More... | |
utility::datetime | insertion_time () const |
Returns the time that the message was inserted into the queue. More... | |
utility::datetime | next_visible_time () const |
Returns the next time that the message will be visible. More... | |
int | dequeue_count () const |
Returns the dequeue count indicating the number of times the message has been retrieved from the queue. More... | |
Static Public Attributes | |
static const size_t | max_message_size = 64U * 1024U |
The maximum message size, in bytes. More... | |
static WASTORAGE_API const std::chrono::seconds | max_time_to_live |
The maximum amount of time a message is kept in the queue, in seconds. More... | |
static const int | max_number_of_messages_to_peek = 32 |
The maximum number of messages that can be peeked from the queue at a time. More... | |
Represents a message in a Windows Azure queue.
|
inline |
Initializes a new instance of the azure::storage::cloud_queue_message class.
|
inlineexplicit |
Initializes a new instance of the azure::storage::cloud_queue_message class, with text content.
content | The content of the message. |
|
inlineexplicit |
Initializes a new instance of the azure::storage::cloud_queue_message class with the specified raw data.
content | The content of the message as raw data. |
|
inline |
Initializes a new instance of the azure::storage::cloud_queue_message class.
id | The unique ID of the message. |
pop_receipt | The pop receipt token. |
|
inline |
Gets the content of the message as raw data.
|
inline |
Gets the content of the message as text.
|
inline |
Returns the dequeue count indicating the number of times the message has been retrieved from the queue.
|
inline |
Returns the expiration time for the message, based on its time-to-live.
|
inline |
Gets the unique ID of the message.
|
inline |
Returns the time that the message was inserted into the queue.
|
inline |
Returns the next time that the message will be visible.
|
inline |
Gets the message's pop receipt.
|
inline |
Sets the content of this message.
value | The new message content. |
|
inline |
Sets the content of this message.
value | The new message content. |
|
static |
The maximum message size, in bytes.
|
static |
The maximum number of messages that can be peeked from the queue at a time.
|
static |
The maximum amount of time a message is kept in the queue, in seconds.