clc queue
Queue commands are a group of queue operations.
Usage:
clc queue [command] [flags]
clc queue clear
Delete all entries of a queue.
Usage:
clc queue clear [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the queue. |
|
Example:
clc queue clear --name my-queue
clc queue offer
Add a value to the given queue.
Usage:
clc queue offer [values] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Required |
Values to add to the queue. |
N/A |
|
Optional |
Name of the queue. |
|
|
Optional |
Data type of the value. One of: |
string |
Example:
clc queue offer --value-type f32 19.94 19.92 --name my-queue
clc queue poll
Remove the given number of elements from the given queue.
Usage:
clc queue poll [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the queue. |
|
|
Optional |
Number of element to be removed from the given queue. |
1 |
|
Optional |
Output format. Supported formats:
|
|
Example:
clc queue poll --count 2 --name my-queue 5