Package com.azure.storage.queue.models
Class QueueProperties
java.lang.Object
com.azure.storage.queue.models.QueueProperties
Model class containing properties of a specific queue in the storage Queue service.
-
Constructor Summary
ConstructorsConstructorDescriptionQueueProperties(Map<String, String> metadata, int approximateMessagesCount) Deprecated.QueueProperties(Map<String, String> metadata, long approximateMessagesCount) Creates an instance that contains properties of a queue. -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.UseQueueProperties(Map, long)instead.longGets the approximate number of messages contained in the queue at the time of properties retrieval.Gets the user-defined metadata associated with the queue.
-
Constructor Details
-
QueueProperties
Deprecated.UseQueueProperties(Map, long)instead.Creates an instance that contains properties of a queue.- Parameters:
metadata- Metadata associated with the queue.approximateMessagesCount- Approximate number of messages contained in the queue.
-
QueueProperties
Creates an instance that contains properties of a queue.- Parameters:
metadata- Metadata associated with the queue.approximateMessagesCount- Approximate number of messages contained in the queue.
-
-
Method Details
-
getMetadata
Gets the user-defined metadata associated with the queue.- Returns:
- The user-defined metadata associated with the queue.
-
getApproximateMessagesCount
Deprecated.UseQueueProperties(Map, long)instead.Gets the approximate number of messages contained in the queue at the time of properties retrieval.- Returns:
- the approximate number of messages contained in the queue at the time of properties retrieval.
-
getApproximateMessagesCountLong
public long getApproximateMessagesCountLong()Gets the approximate number of messages contained in the queue at the time of properties retrieval.- Returns:
- the approximate number of messages contained in the queue at the time of properties retrieval.
-
QueueProperties(Map, long)instead.