Sets the maximum amount of data retained by the queue.
By default, the maximum total amount of data is unlimited.
This method is thread-safe.
- Parameters
-
queue | Queue object. |
size | Maximum total size of all data items in queue, in bytes. |
- Returns
- Operation status.